From 5384a2d82e71717f0d47ce0c90caedaa27b16ad3 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 18 Dec 2009 09:09:18 -0500 Subject: [PATCH] SORT STORE test added --- test-redis.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-redis.tcl b/test-redis.tcl index c5f15bfb5..437af93ea 100644 --- a/test-redis.tcl +++ b/test-redis.tcl @@ -904,6 +904,11 @@ proc main {server port} { $r sort tosort {BY weight_*} } $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} { $r sort tosort } [lsort -integer $res] -- GitLab