diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 15:27:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 15:27:03 +0100 |
commit | 88b2b5b24f1b70be17a1ede3d70fd4b96959d569 (patch) | |
tree | f59261db9b09bcbc39ecab29d3fbf67f3425cfbb /test/lua/unit/regxep.lua | |
parent | 43c18e6f521ff51cb60b1e502a5e00ce027752cd (diff) | |
download | rspamd-88b2b5b24f1b70be17a1ede3d70fd4b96959d569.tar.gz rspamd-88b2b5b24f1b70be17a1ede3d70fd4b96959d569.zip |
[Test] Fix unit tests
Diffstat (limited to 'test/lua/unit/regxep.lua')
-rw-r--r-- | test/lua/unit/regxep.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lua/unit/regxep.lua b/test/lua/unit/regxep.lua index 0bb4db935..a27e7b363 100644 --- a/test/lua/unit/regxep.lua +++ b/test/lua/unit/regxep.lua @@ -9,13 +9,13 @@ context("Regexp unit tests", function() end) test("Regexp match", function() local cases = { + {'/Тест/iu', 'тест', true}, {'/test$/m', '123test', true}, {'/^test$/m', '123test', false}, {'m,test,', 'test', true}, {'m,test,', 'test123', false}, {'m{https?://[^/?\\s]+?:\\d+(?<!:80)(?<!:443)(?<!:8080)(?:/|\\s|$)}', '', false}, {'/test/i', 'TeSt123', true}, - {'/ТесТ/iu', 'тест', true}, -- Raw regexp {'/\\S<[-\\w\\.]+\\@[-\\w\\.]+>/r', 'some<example@example.com>', true}, -- Cyrillic utf8 letter |