From: John Benediktsson Date: Tue, 5 Dec 2023 22:33:34 +0000 (-0800) Subject: unicode: version the test files X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=ca5e87f411893339160b14e07d0a2d65819ca0ad unicode: version the test files --- diff --git a/basis/unicode/breaks/breaks-tests.factor b/basis/unicode/breaks/breaks-tests.factor index 5aece1798a..cc1cb956a5 100644 --- a/basis/unicode/breaks/breaks-tests.factor +++ b/basis/unicode/breaks/breaks-tests.factor @@ -20,12 +20,12 @@ IN: unicode.breaks.tests { { t f t t f t } } [ 6 [ "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 diff --git a/basis/unicode/collation/collation-tests.factor b/basis/unicode/collation/collation-tests.factor index b192d911ed..6c9e4700b6 100644 --- a/basis/unicode/collation/collation-tests.factor +++ b/basis/unicode/collation/collation-tests.factor @@ -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 ) diff --git a/basis/unicode/normalize/normalize-tests.factor b/basis/unicode/normalize/normalize-tests.factor index 182fc92b31..ac1f76a711 100644 --- a/basis/unicode/normalize/normalize-tests.factor +++ b/basis/unicode/normalize/normalize-tests.factor @@ -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 [ first2 [ first ] dip 2array ] map