From: Vsevolod Stakhov Date: Sat, 31 Mar 2018 15:48:17 +0000 (+0100) Subject: [Minor] Fix ac-trie test case as it cannot deal with \0 X-Git-Tag: 1.7.3~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f626b1f79ed3efa8078a6913e49c0b9caea7288;p=thirdparty%2Frspamd.git [Minor] Fix ac-trie test case as it cannot deal with \0 --- diff --git a/test/lua/unit/trie.lua b/test/lua/unit/trie.lua index 9bf522543d..3731a713c8 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