summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-10-30 13:45:46 +0100
committerantirez <antirez@gmail.com>2017-10-30 13:45:46 +0100
commitb2e295971ff9dce6552e717f542c056524d002c8 (patch)
tree203e95ce175937c1e46edbf74e853f06fb1ba119
parentde474186bdb1a595bb77ccec577754134884bb52 (diff)
downloadredis-b2e295971ff9dce6552e717f542c056524d002c8.tar.gz
Regression test for issue #4391.
-rw-r--r--tests/unit/type/zset.tcl4
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