]> gitweb.factorcode.org Git - factor.git/commitdiff
peg.search: fix tests
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 16 Sep 2023 02:52:22 +0000 (19:52 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 16 Sep 2023 02:52:22 +0000 (19:52 -0700)
basis/peg/search/search-tests.factor

index d5ffc4df121f3c51074406bd34cddb3665f7b977..d32ee129602c7e91fb347c4cc15e114829e4574f 100644 (file)
@@ -6,13 +6,15 @@ peg.search ;
 IN: peg.search.tests
 
 { V{ 123 456 } } [
-  "abc 123 def 456" integer-parser search
+  "abc 123 def 456" integer-parser peg-search
 ] unit-test
 
 { V{ 123 "hello" 456 } } [
-  "one 123 \"hello\" two 456" integer-parser string-parser 2array choice search
+  "one 123 \"hello\" two 456" integer-parser string-parser
+  2array choice peg-search
 ] unit-test
 
 { "abc 246 def 912" } [
-  "abc 123 def 456" integer-parser [ 2 * number>string ] action replace
+  "abc 123 def 456" integer-parser [ 2 * number>string ] action
+  peg-replace
 ] unit-test