diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-11 15:43:18 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-11 15:43:18 +0000 |
commit | dd5e66af883f47c9df98265369cc2d5fce0c6139 (patch) | |
tree | 35d956ef1c9a7f6b5e967da004f15063979367ea /test/lua | |
parent | 82870c1b5aaa92a3fe0ce0c6ac5d5da8165f4a85 (diff) | |
download | rspamd-dd5e66af883f47c9df98265369cc2d5fce0c6139.tar.gz rspamd-dd5e66af883f47c9df98265369cc2d5fce0c6139.zip |
Add some raw regexp tests.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/unit/regxep.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/regxep.lua b/test/lua/unit/regxep.lua index 1277cce11..e33d20d43 100644 --- a/test/lua/unit/regxep.lua +++ b/test/lua/unit/regxep.lua @@ -15,6 +15,10 @@ context("Regexp unit tests", function() {'m,test,', 'test123', false}, {'/test/i', 'TeSt123', true}, {'/тест/i', 'ТесТ', true}, + -- Raw regexp + {'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@example.com>', true}, + -- Cyrillic utf8 letter + {'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@exаmple.com>', false}, } for _,c in ipairs(cases) do |