diff options
Diffstat (limited to 'test/functional/lua/neural.lua')
-rw-r--r-- | test/functional/lua/neural.lua | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/functional/lua/neural.lua b/test/functional/lua/neural.lua index 7ea29a252..32419c8c8 100644 --- a/test/functional/lua/neural.lua +++ b/test/functional/lua/neural.lua @@ -1,20 +1,23 @@ local logger = require "rspamd_logger" -rspamd_config:register_symbol({ - name = 'SPAM_SYMBOL', - score = 5.0, - callback = function() - return true, 'Fires always' - end -}) +for i = 1,10 do + rspamd_config:register_symbol({ + name = 'SPAM_SYMBOL'..tostring(i), + score = 5.0, + callback = function() + return true, 'Fires always' + end + }) + rspamd_config:register_symbol({ + name = 'HAM_SYMBOL'..tostring(i), + score = -3.0, + callback = function() + return true, 'Fires always' + end + }) +end + -rspamd_config:register_symbol({ - name = 'HAM_SYMBOL', - score = -3.0, - callback = function() - return true, 'Fires always' - end -}) rspamd_config:register_symbol({ name = 'NEUTRAL_SYMBOL', |