diff options
author | antirez <antirez@gmail.com> | 2017-10-30 13:45:46 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-10-30 13:46:11 +0100 |
commit | b25c245156bcf12ec8b2298c95f4d2d3d5d2417e (patch) | |
tree | 0306188b1cc72826c050554ed33584018482f8ee | |
parent | 1847b987c685c95b581f7e50ef9073e92b09b82f (diff) | |
download | redis-b25c245156bcf12ec8b2298c95f4d2d3d5d2417e.tar.gz |
Regression test for issue #4391.
-rw-r--r-- | tests/unit/type/zset.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/type/zset.tcl b/tests/unit/type/zset.tcl index 82f76befe..564825ae9 100644 --- a/tests/unit/type/zset.tcl +++ b/tests/unit/type/zset.tcl @@ -696,6 +696,10 @@ start_server {tags {"zset"}} { } } + test "ZSET commands don't accept the empty strings as valid score" { + assert_error "*not*float*" {r zadd myzset "" abc} + } + proc stressers {encoding} { if {$encoding == "ziplist"} { # Little extra to allow proper fuzzing in the sorting stresser |