diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-03-23 13:00:35 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-03-23 13:07:38 +0200 |
commit | dfd336d4e92f73b156cf5e3faf7a0b87fd689267 (patch) | |
tree | b522baf44db395f6bb1b5aef8849de78f66b831b /test/functional/lua | |
parent | 4d6b4e4349a0edd94f48d5472c6e3f0e4217052e (diff) | |
download | rspamd-dfd336d4e92f73b156cf5e3faf7a0b87fd689267.tar.gz rspamd-dfd336d4e92f73b156cf5e3faf7a0b87fd689267.zip |
[Test] Test option order
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/option_order.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/lua/option_order.lua b/test/functional/lua/option_order.lua new file mode 100644 index 000000000..caff30f90 --- /dev/null +++ b/test/functional/lua/option_order.lua @@ -0,0 +1,15 @@ +rspamd_config:register_symbol({ + name = 'TBL_OPTION_ORDER', + score = 1.0, + callback = function() + return true, {'one', 'two', 'three', '4', '5', 'a'} + end +}) + +rspamd_config:register_symbol({ + name = 'OPTION_ORDER', + score = 1.0, + callback = function() + return true, 'one', 'two', 'three', '4', '5', 'a' + end +}) |