]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unicode/normalize/normalize-tests.factor
factor: update download to return path and using lists
[factor.git] / basis / unicode / normalize / normalize-tests.factor
index 98ac3e54081c3f3b886a42fe5b705699bb4f7fa6..3d72ad99e5852776da317293730dfd667e5a8f10 100644 (file)
@@ -1,8 +1,7 @@
-USING: arrays assocs combinators combinators.short-circuit
-grouping http.client io.encodings.utf8 io.files io.files.temp
-io.streams.null kernel locals math math.parser quotations random
-sequences splitting splitting.extras strings tools.test unicode
-unicode.normalize.private ;
+USING: arrays assocs combinators.short-circuit grouping
+http.download io.encodings.utf8 io.files io.files.temp kernel
+math math.parser sequences splitting splitting.extras strings
+tools.test unicode unicode.normalize.private ;
 IN: unicode.normalize.tests
 
 { "ab\u000323\u000302cd" } [ "ab\u000302" "\u000323cd" string-append ] unit-test
@@ -28,7 +27,7 @@ IN: unicode.normalize.tests
 ! Could use simple-flat-file after some cleanup
 : parse-normalization-tests ( -- tests )
     "https://downloads.factorcode.org/misc/UCD/15.1.0/NormalizationTest.txt"
-    "NormalizationTest-15.1.0.txt" cache-file [ ?download-to ] keep
+    "NormalizationTest-15.1.0.txt" cache-file download-to
     utf8 file-lines [ "#" head? ] reject
     [ "@" head? ] split*-when
     2 <groups> [ first2 [ first ] dip 2array ] map