]> gitweb.factorcode.org Git - factor.git/commitdiff
unicode: version the test files
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 5 Dec 2023 22:33:34 +0000 (14:33 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 5 Dec 2023 22:33:34 +0000 (14:33 -0800)
basis/unicode/breaks/breaks-tests.factor
basis/unicode/collation/collation-tests.factor
basis/unicode/normalize/normalize-tests.factor

index 5aece1798a85666f5d7bd728eb70a975c0250826..cc1cb956a52bd7e9e06ebfa3c9618c19d00ceb3c 100644 (file)
@@ -20,12 +20,12 @@ IN: unicode.breaks.tests
 { { t f t t f t } } [ 6 <iota> [ "as df" word-break-at? ] map ] unit-test
 
 : grapheme-break-test ( -- filename )
-    "https://downloads.factorcode.org/misc/UCD/auxiliary/GraphemeBreakTest.txt"
-    "GraphemeBreakTest.txt" cache-file [ ?download-to ] keep ;
+    "https://downloads.factorcode.org/misc/UCD/15.0.0/auxiliary/GraphemeBreakTest.txt"
+    "GraphemeBreakTest-15.0.0.txt" cache-file [ ?download-to ] keep ;
 
 : word-break-test ( -- filename )
-    "https://downloads.factorcode.org/misc/UCD/auxiliary/WordBreakTest.txt"
-    "WordBreakTest.txt" cache-file [ ?download-to ] keep ;
+    "https://downloads.factorcode.org/misc/UCD/15.0.0/auxiliary/WordBreakTest.txt"
+    "WordBreakTest-15.0.0.txt" cache-file [ ?download-to ] keep ;
 
 : parse-test-file ( file-name -- tests )
     utf8 file-lines
index b192d911ed80f7229c1ebdf16c09f645575ea1d2..6c9e4700b6308eeff0289ddc5b69b28358f131b7 100644 (file)
@@ -18,8 +18,8 @@ IN: unicode.collation.tests
 [ { "HELLO" "goodbye" "good bye" "hello" } sort-strings ] unit-test
 
 : collation-test-lines ( -- lines )
-    "https://downloads.factorcode.org/misc/UCA/CollationTest_SHIFTED.txt"
-    "CollationTest_SHIFTED.txt" cache-file [ ?download-to ] keep
+    "https://downloads.factorcode.org/misc/UCA/15.0.0/CollationTest_SHIFTED.txt"
+    "CollationTest_SHIFTED_15.0.0.txt" cache-file [ ?download-to ] keep
     utf8 file-lines [ "#" head? ] reject harvest ;
 
 : parse-collation-test-shifted ( -- lines )
index 182fc92b31a18141ce69e78edc989ff6caf3bb0f..ac1f76a71107f98f8ea1a768df900f27195d973a 100644 (file)
@@ -27,8 +27,8 @@ IN: unicode.normalize.tests
 
 ! Could use simple-flat-file after some cleanup
 : parse-normalization-tests ( -- tests )
-    "https://downloads.factorcode.org/misc/UCD/NormalizationTest.txt"
-    "NormalizationTest.txt" cache-file [ ?download-to ] keep
+    "https://downloads.factorcode.org/misc/UCD/15.0.0/NormalizationTest.txt"
+    "NormalizationTest-15.0.0.txt" cache-file [ ?download-to ] keep
     utf8 file-lines [ "#" head? ] reject
     [ "@" head? ] split*-when
     2 <groups> [ first2 [ first ] dip 2array ] map