diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-03 16:05:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-03 16:06:31 +0100 |
commit | e323b1db4b0b4ef2b6783d4d7b5f15a640882614 (patch) | |
tree | f69d5baed44e925b3f645ee9ee394f0768b09e90 /test | |
parent | 269c424b55cda245e6b55e21e5f3fa47f9509ea8 (diff) | |
download | rspamd-e323b1db4b0b4ef2b6783d4d7b5f15a640882614.tar.gz rspamd-e323b1db4b0b4ef2b6783d4d7b5f15a640882614.zip |
[Test] Add test for kann load/save
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/kann.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lua/unit/kann.lua b/test/lua/unit/kann.lua index bb6930203..4f8185b02 100644 --- a/test/lua/unit/kann.lua +++ b/test/lua/unit/kann.lua @@ -30,6 +30,9 @@ context("Kann test", function() mini_size = 80, }) + local ser = k:save() + k = kann.load(ser) + for i,inp in ipairs(inputs) do test(string.format("Check XOR MLP %s ^ %s == %s", inp[1], inp[2], outputs[i][1]), function() |