aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-21 12:52:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-21 12:52:54 +0100
commit1c957d5ea3d1f21877fd647544486e6696ac39bd (patch)
treea096d015f06207e7af2d968da06dab3a15f4cfb5 /test/lua
parenta3374a6c7bc9f26d0ad07ef260d3528bd77105fb (diff)
downloadrspamd-1c957d5ea3d1f21877fd647544486e6696ac39bd.tar.gz
rspamd-1c957d5ea3d1f21877fd647544486e6696ac39bd.zip
Use not common name for tokenization exceptions.
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/tokenizer.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lua/unit/tokenizer.lua b/test/lua/unit/tokenizer.lua
index 6aefeec6f..e05f74d86 100644
--- a/test/lua/unit/tokenizer.lua
+++ b/test/lua/unit/tokenizer.lua
@@ -67,31 +67,31 @@ context("Text tokenization test", function()
local cases = {
{"word https://example.com/path word",
{{5, 24}},
- {"word", "exception", "word"}
+ {"word", "!!EX!!", "word"}
},
{"համար https://example.com/path համար",
{{11, 24}},
- {"համար", "exception", "համար"}
+ {"համար", "!!EX!!", "համար"}
},
{"word https://example.com/path https://example.com/path word",
{{5, 24}, {30, 24}},
- {"word", "exception", "exception", "word"}
+ {"word", "!!EX!!", "!!EX!!", "word"}
},
{"word https://example.com/path https://example.com/path",
{{5, 24}, {30, 24}},
- {"word", "exception", "exception"}
+ {"word", "!!EX!!", "!!EX!!"}
},
{"https://example.com/path https://example.com/path word",
{{0, 24}, {25, 24}},
- {"exception", "exception", "word"}
+ {"!!EX!!", "!!EX!!", "word"}
},
{"https://example.com/path https://example.com/path",
{{0, 24}, {25, 24}},
- {"exception", "exception"}
+ {"!!EX!!", "!!EX!!"}
},
{",,,,https://example.com/path https://example.com/path ",
{{4, 24}, {29, 24}},
- {"exception", "exception"}
+ {"!!EX!!", "!!EX!!"}
},
}