mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
SORT STORE test added
This commit is contained in:
parent
d922ae6592
commit
5384a2d82e
@ -904,6 +904,11 @@ proc main {server port} {
|
|||||||
$r sort tosort {BY weight_*}
|
$r sort tosort {BY weight_*}
|
||||||
} $res
|
} $res
|
||||||
|
|
||||||
|
test {SORT with BY and STORE against the newly created list} {
|
||||||
|
$r sort tosort {BY weight_*} store sort-res
|
||||||
|
$r lrange sort-res 0 -1
|
||||||
|
} $res
|
||||||
|
|
||||||
test {SORT direct, numeric, against the newly created list} {
|
test {SORT direct, numeric, against the newly created list} {
|
||||||
$r sort tosort
|
$r sort tosort
|
||||||
} [lsort -integer $res]
|
} [lsort -integer $res]
|
||||||
|
Loading…
Reference in New Issue
Block a user