]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/yenc/yenc-tests.factor
yenc: adding yEnc format encoding/decoding
[factor.git] / extra / yenc / yenc-tests.factor
diff --git a/extra/yenc/yenc-tests.factor b/extra/yenc/yenc-tests.factor
new file mode 100644 (file)
index 0000000..982fe8c
--- /dev/null
@@ -0,0 +1,9 @@
+USING: byte-arrays io.encodings.binary io.files kernel sequences
+tools.test yenc ;
+
+{ t } [ 255 <iota> >byte-array dup yenc ydec = ] unit-test
+
+{ t } [
+    "resource:LICENSE.txt"
+    [ yenc-file ydec-file 2nip ] [ binary file-contents ] bi =
+] unit-test