From 9f626b1f79ed3efa8078a6913e49c0b9caea7288 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 31 Mar 2018 16:48:17 +0100 Subject: [Minor] Fix ac-trie test case as it cannot deal with \0 --- test/lua/unit/trie.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3