diff --git a/basis/regexp/regexp-tests.factor b/basis/regexp/regexp-tests.factor index 777d0985e4..0647c4b36f 100644 --- a/basis/regexp/regexp-tests.factor +++ b/basis/regexp/regexp-tests.factor @@ -253,7 +253,7 @@ IN: regexp-tests [ ] [ "(\\$[\\p{XDigit}]|[\\p{Digit}])" drop ] unit-test -! Comment +! Comment inside a regular expression [ t ] [ "ac" "a(?#boo)c" matches? ] unit-test [ ] [ "USING: regexp kernel ; R' -{3}[+]{1,6}(?:!!)?\\s' drop" eval ] unit-test @@ -291,6 +291,12 @@ IN: regexp-tests [ "a" ] [ "ba" "a(?<=b)(?<=b)" first-match >string ] unit-test [ "a" ] [ "cab" "a(?=b)(?<=c)" first-match >string ] unit-test +[ 3 ] [ "foobar" "foo(?=bar)" match-head ] unit-test +[ f ] [ "foobxr" "foo(?=bar)" match-head ] unit-test + +! Bug in parsing word +[ t ] [ "a" R' a' matches? ] unit-test + ! [ "{Lower}" ] [ invalid-range? ] must-fail-with ! [ 1 ] [ "aaacb" "a+?" match-head ] unit-test @@ -303,9 +309,6 @@ IN: regexp-tests ! [ t ] [ "fxxbar" "(?!foo).{3}bar" matches? ] unit-test ! [ f ] [ "foobar" "(?!foo).{3}bar" matches? ] unit-test -[ 3 ] [ "foobar" "foo(?=bar)" match-head ] unit-test -[ f ] [ "foobxr" "foo(?=bar)" match-head ] unit-test - ! [ f ] [ "foobxr" "foo\\z" match-head ] unit-test ! [ 3 ] [ "foo" "foo\\z" match-head ] unit-test @@ -323,10 +326,6 @@ IN: regexp-tests ! [ t ] [ "fooxbar" "foo\\Bxbar" matches? ] unit-test ! [ f ] [ "foo" "foo\\Bbar" matches? ] unit-test - -! Bug in parsing word -! [ t ] [ "a" R' a' matches? ] unit-test - ! clear "a(?=b*)" "ab" over match ! clear "a(?=b*c)" "abbbbbc" over match ! clear "a(?=b*)" "ab" over match @@ -356,7 +355,6 @@ IN: regexp-tests ! "a(?<=b)" "caba" over first-match - ! capture group 1: "aaaa" 2: "" ! "aaaa" "(a*)(a*)" match* ! "aaaa" "(a*)(a+)" match*