Skip to content
Snippets Groups Projects
Commit afc9d82b authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

added tests for + in regexps

Rev: src/test/create_testsuite:1.11
parent 3829274e
Branches
Tags
No related merge requests found
...@@ -1201,6 +1201,12 @@ test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("-"),1) ...@@ -1201,6 +1201,12 @@ test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("-"),1)
test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("a"),0) test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("a"),0)
test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("c"),0) test_eq(clone((program)"/precompiled/regexp","^[^abc]$")->match("c"),0)
test_eq(clone((program)"/precompiled/regexp","^a*$")->match("aaaa"),1) test_eq(clone((program)"/precompiled/regexp","^a*$")->match("aaaa"),1)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)*$")->match("aabbabb"),1)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)*$")->match(""),1)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)+$")->match(""),0)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)+$")->match("aaa"),1)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)+$")->match("bbb"),0)
test_eq(clone((program)"/precompiled/regexp","^(a|bb)+$")->match("bbaabba"),1)
test_eq(clone((program)"/precompiled/regexp","^a|b$")->match("a"),1) test_eq(clone((program)"/precompiled/regexp","^a|b$")->match("a"),1)
test_eq(clone((program)"/precompiled/regexp","^a|b$")->match("b"),1) test_eq(clone((program)"/precompiled/regexp","^a|b$")->match("b"),1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment