]> git.scottworley.com Git - rfc1751/blobdiff - tests/decode.sh
decode support
[rfc1751] / tests / decode.sh
diff --git a/tests/decode.sh b/tests/decode.sh
new file mode 100755 (executable)
index 0000000..f90fecd
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+[ "$(python3 rfc1751.py MANY WORD WORK)" = 6148810734 ]
+[ "$(python3 rfc1751.py 'ONE WORD WORK')" = 1597990894 ]
+[ "$(python3 rfc1751.py BIG BIG ONE SO BIG SO SO BIG ONE WORK GOOD WORK REAL GOOD)" = 669350037874937989068749321016845031137563765 ]