From d6a20015c95e2a15f0f8dc6fcd73d3f5695e32e7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 4 Jun 2024 19:58:42 +0200 Subject: Merging upstream version 5:7.2.5. Signed-off-by: Daniel Baumann --- tests/unit/scripting.tcl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/unit/scripting.tcl') diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index c2f79a7..18066a1 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -146,6 +146,14 @@ start_server {tags {"scripting"}} { } 1 x } {number 1} + test {EVAL - Lua number -> Redis integer conversion} { + r del hash + run_script { + local foo = redis.pcall('hincrby','hash','field',200000000) + return {type(foo),foo} + } 0 + } {number 200000000} + test {EVAL - Redis bulk -> Lua type conversion} { r set mykey myval run_script { -- cgit v1.2.3