]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix ac-trie test case as it cannot deal with \0
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 31 Mar 2018 15:48:17 +0000 (16:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 31 Mar 2018 15:48:41 +0000 (16:48 +0100)
test/lua/unit/trie.lua

index 9bf522543d9b40513bb2fcb56195e0d31406df91..3731a713c81bb085bfc1aaeb48e2c14f5b92e010 100644 (file)
@@ -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