diff options
author | Reuben Thomas <rrt@sc3d.org> | 2010-07-31 19:07:50 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2010-07-31 19:07:50 +0100 |
commit | a896b1b439a6b7ac2650d643b40b65357962d858 (patch) | |
tree | ef14b5687db503755cf86b3d51254e3fb5a95f40 /test/gnu_sets.lua | |
parent | 02d7f1820a2085b6e074da893332587d100f94ef (diff) | |
download | lrexlib-a896b1b439a6b7ac2650d643b40b65357962d858.tar.gz |
Fix two that use the “not beginning of line” flag (POSIX & GNU). They
erroneously had the subject “^abc”, not “abc”, so would always pass
(because the pattern “^abc” would never match). Of course, they still
pass with the flag set, but I have confirmed that they now fail with
the flag removed (whereas before they passed).
Diffstat (limited to 'test/gnu_sets.lua')
-rwxr-xr-x | test/gnu_sets.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gnu_sets.lua b/test/gnu_sets.lua index 8dd5833..e88fc1c 100755 --- a/test/gnu_sets.lua +++ b/test/gnu_sets.lua @@ -38,7 +38,7 @@ return { --{subj, patt, st,cf,ef}, { results } { {"abcd", ".+", 5}, { N } }, -- failing st { {"abc", "^abc"}, {"abc" } }, -- anchor - { {"^abc", "^abc", N,N,flg.NOTBOL}, { N } }, -- anchor + ef + { {"abc", "^abc", N,N,flg.not_bol}, { N } }, -- anchor + ef } end |