]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Test] Fix selector tests to work with both LuaJIT and Lua 5.4
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 08:49:57 +0000 (08:49 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 08:49:57 +0000 (08:49 +0000)
commit898212b45821abb76805bec4673a43585322eb4e
tree3f95d9dc5eedd4ac6c5b97100e60d1824aff19c8
parentdf898c58daf4ac45bc04ba48bb7323c90dbe55e0
[Test] Fix selector tests to work with both LuaJIT and Lua 5.4

Use tostring() for expected values so they match the runtime's
float-to-string conversion (LuaJIT: "1", Lua 5.4: "1.0")
test/lua/unit/selectors.lua