diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 16:48:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 16:48:41 +0100 |
commit | 9f626b1f79ed3efa8078a6913e49c0b9caea7288 (patch) | |
tree | d1e44bbcac3785222bc6c31e6f08388a75e84de5 /test | |
parent | eeb7b29f82b99bed5e1c2bdbfd317227eb95dd3d (diff) | |
download | rspamd-9f626b1f79ed3efa8078a6913e49c0b9caea7288.tar.gz rspamd-9f626b1f79ed3efa8078a6913e49c0b9caea7288.zip |
[Minor] Fix ac-trie test case as it cannot deal with \0
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/trie.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/unit/trie.lua b/test/lua/unit/trie.lua index 9bf522543..3731a713c 100644 --- a/test/lua/unit/trie.lua +++ b/test/lua/unit/trie.lua @@ -8,7 +8,7 @@ context("Trie search functions", function() 'est', 'he', 'she', - 'str\0ing' + 'str\1ing' } local function comparetables(t1, t2) @@ -30,7 +30,7 @@ context("Trie search functions", function() {'test', true, {{4, 1}, {4, 2}}}, {'she test test', true, {{3, 4}, {3, 3}, {8, 1}, {8, 2}, {13, 1}, {13, 2}}}, {'non-existent', false}, - {'str\0ing test', true, {{7, 5}, {12, 1}, {12, 2}}}, + {'str\1ing test', true, {{7, 5}, {12, 1}, {12, 2}}}, } for i,c in ipairs(cases) do |