diff options
author | antirez <antirez@gmail.com> | 2011-12-01 16:07:55 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-12-01 16:08:30 +0100 |
commit | bc62bc5eaceba9d3a3b84c01121b12c01f22643b (patch) | |
tree | 82dcd7acc28ea4e3792938e3c1f99fa10c6e2c64 /tests | |
parent | 67d6b29404f72b5efee2c50847d39baa13c8ba12 (diff) | |
download | redis-bc62bc5eaceba9d3a3b84c01121b12c01f22643b.tar.gz |
Fixed SORT bugs (issue #224) with regression tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/sort.tcl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/sort.tcl b/tests/unit/sort.tcl index 3a4c855f5..e474e50cf 100644 --- a/tests/unit/sort.tcl +++ b/tests/unit/sort.tcl @@ -134,6 +134,18 @@ start_server { assert_equal [lsort -real $floats] [r sort mylist] } + test "SORT with STORE returns zero if result is empty (github isse 224)" { + r flushdb + r sort foo store bar + } {0} + + test "SORT with STORE does not create empty lists (github issue 224)" { + r flushdb + r lpush foo bar + r sort foo limit 10 10 store zap + r exists zap + } {0} + tags {"slow"} { set num 100 set res [create_random_dataset $num lpush] |