This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
rspamd
mirror of
https://github.com/vstakhov/rspamd.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
159
Wiki
Activity
Browse Source
[Test] Add test for kann load/save
tags/2.0
Vsevolod Stakhov
5 years ago
parent
269c424b55
commit
e323b1db4b
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
3
0
test/lua/unit/kann.lua
+ 3
- 0
test/lua/unit/kann.lua
View File
@@ -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()
Write
Preview
Loading…
Cancel
Save