Commit a1090c11 authored by antirez's avatar antirez
Browse files

Added test for SORT corner case: pattern ending with just "->".

parent 68ee1855
...@@ -190,6 +190,13 @@ start_server { ...@@ -190,6 +190,13 @@ start_server {
r sort myset by score:* r sort myset by score:*
} {a aa aaa azz b c d e f g h i l m n o p q r s t u v z} } {a aa aaa azz b c d e f g h i l m n o p q r s t u v z}
test "SORT GET with pattern ending with just -> does not get hash field" {
r del mylist
r lpush mylist a
r set x:a-> 100
r sort mylist by num get x:*->
} {100}
tags {"slow"} { tags {"slow"} {
set num 100 set num 100
set res [create_random_dataset $num lpush] set res [create_random_dataset $num lpush]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment