]> git.saurik.com Git - redis.git/commitdiff
EXPIREAT test
authorantirez <antirez@gmail.com>
Sat, 21 Nov 2009 10:15:12 +0000 (11:15 +0100)
committerantirez <antirez@gmail.com>
Sat, 21 Nov 2009 10:15:12 +0000 (11:15 +0100)
TODO
test-redis.tcl

diff --git a/TODO b/TODO
index 165fee4263ede86d645cddd93421b3f3bcd1ea83..27102e016a0671eef2a721bf2cda2b64dfbc7855 100644 (file)
--- a/TODO
+++ b/TODO
@@ -3,7 +3,7 @@ VERSION 1.1 TODO
 * For now only the last argument gets integer encoded, so make sure that: 1) every multi bulk commands implemented will have the last arg that is indeed a value, and not used otherwise. 2) to explicitly call the function to encode the object in MSET and other commands where there are multiple "values".
 * Man pages for MSET MSETNX and SRANDMEMBER, Z-commands, ...
 * Use strcoll() to compare objects in sorted sets, like it already happens for SORT.
 * For now only the last argument gets integer encoded, so make sure that: 1) every multi bulk commands implemented will have the last arg that is indeed a value, and not used otherwise. 2) to explicitly call the function to encode the object in MSET and other commands where there are multiple "values".
 * Man pages for MSET MSETNX and SRANDMEMBER, Z-commands, ...
 * Use strcoll() to compare objects in sorted sets, like it already happens for SORT.
-* Tests for: EXPIREAT, ZSCORE, SRANDMEMBER, SORT with #.
+* Tests for: EXPIREAT, ZSCORE, ZINCRBY, SRANDMEMBER, SORT with #.
 * Write docs for the "STORE" operaiton of SORT, and GET "#" option.
 * Append only mode: testing and a command to rebuild the log from scratch.
 * Redis-cli should be able to select a different DB than 0 using some switch.
 * Write docs for the "STORE" operaiton of SORT, and GET "#" option.
 * Append only mode: testing and a command to rebuild the log from scratch.
 * Redis-cli should be able to select a different DB than 0 using some switch.
index d3837026b81ceb7a45f73576c5efb52e5c864749..a7b40cd3677834ef1f68179a78ef4465bb141264 100644 (file)
@@ -960,6 +960,13 @@ proc main {server port} {
         $r lrange x 0 -1
     } {bar}
 
         $r lrange x 0 -1
     } {bar}
 
+    test {EXPIREAT - Check for EXPIRE alike behavior} {
+        $r del x
+        $r set x foo
+        $r expireat x [expr [clock seconds]+15]
+        $r ttl x
+    } {1[345]}
+
     test {ZSETs skiplist implementation backlink consistency test} {
         set diff 0
         set elements 10000
     test {ZSETs skiplist implementation backlink consistency test} {
         set diff 0
         set elements 10000