diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/regxep.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lua/unit/regxep.lua b/test/lua/unit/regxep.lua index 5329fece2..81234ddb6 100644 --- a/test/lua/unit/regxep.lua +++ b/test/lua/unit/regxep.lua @@ -21,10 +21,8 @@ context("Regexp unit tests", function() local r = re.create_cached(c[1]) assert_not_nil(r) local res = r:match(c[2]) - local m = false - if res then m = true end - assert_equal(m, c[3], string.format("'%s' doesn't match with '%s'", + assert_equal(res, c[3], string.format("'%s' doesn't match with '%s'", c[2], c[1])) end end) |