]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/pcre/pcre-tests.factor
factor: use new math.ranges syntax in tests and docs
[factor.git] / extra / pcre / pcre-tests.factor
index 686d93e7724f87127f66dc810c56a1e42d37dc89..abadc761c0b60e42edb9c52ee27d86af2544ba12 100644 (file)
@@ -90,7 +90,7 @@ os unix? [ [ 10 ] [ PCRE_CONFIG_NEWLINE pcre-config ] unit-test ] when
 ] unit-test
 
 : long-string ( -- x )
-    10000 [ CHAR: a CHAR: z [a,b] random ] "" replicate-as ;
+    10000 [ CHAR: a CHAR: z [a..b] random ] "" replicate-as ;
 
 ! Performance
 { 0 } [ long-string ".{0,15}foobar.{0,10}" findall length ] unit-test