1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Add test for HINCRBY

This commit is contained in:
Matt Ranney
2010-09-18 21:27:09 -07:00
parent 09f1564b7c
commit 42c752f759

View File

@@ -100,6 +100,13 @@ tests.HMGET = function () {
});
};
tests.HINCRBY = function () {
var name = "HINCRBY";
client.hset("hash incr", "value", 10, require_number(1, name));
client.HINCRBY("hash incr", "value", 1, require_number(11, name));
client.HINCRBY("hash incr", "value 2", 1, last(name, require_number(1, name)));
};
tests.EXISTS = function () {
var name = "EXISTS";
client.del("foo", "foo2", require_number_any(name));