]> gitweb.factorcode.org Git - factor.git/commitdiff
fix parser combinator tests to work with str>number change
authorChris Double <chris.double@double.co.nz>
Wed, 24 Aug 2005 00:01:39 +0000 (00:01 +0000)
committerChris Double <chris.double@double.co.nz>
Wed, 24 Aug 2005 00:01:39 +0000 (00:01 +0000)
contrib/parser-combinators/tests.factor

index ece1f9fad36ca1ad0e8d58cd662c0ba0271364ef..1bfe3d5c463f85a6e90da9c8953b570502721d53 100644 (file)
@@ -193,7 +193,7 @@ USING: kernel lazy parser-combinators test errors strings parser lists math sequ
 
 : pdigit [ digit? ] satisfy [ digit> ] <@ ;
 : pnatural pdigit <*> ;
-: pnatural2 pnatural [ car [ >digit ] map >string dup pempty? [ drop 0 ] [ str>number ] ifte unit ] <@ ;
+: pnatural2 pnatural [ car [ >digit ] map >string dup pempty? [ drop 0 ] [ string>number ] ifte unit ] <@ ;
 
 [ 
   [ "" 12345 ]