Merge branch 'variadic_arg_support' of git://github.com/shaofengniu/jedis into shaofengniu-variadic_arg_support

This commit is contained in:
Jonathan Leibiusky
2012-04-17 18:40:17 -03:00
10 changed files with 50 additions and 25 deletions

View File

@@ -30,12 +30,17 @@ public class ListCommandsTest extends JedisCommandTestBase {
assertEquals(1, size);
size = jedis.rpush("foo", "foo");
assertEquals(2, size);
size = jedis.rpush("foo", "bar", "foo");
assertEquals(4, size);
// Binary
long bsize = jedis.rpush(bfoo, bbar);
assertEquals(1, bsize);
bsize = jedis.rpush(bfoo, bfoo);
assertEquals(2, bsize);
bsize = jedis.rpush(bfoo, bbar, bfoo);
assertEquals(4, bsize);
}
@@ -45,12 +50,16 @@ public class ListCommandsTest extends JedisCommandTestBase {
assertEquals(1, size);
size = jedis.lpush("foo", "foo");
assertEquals(2, size);
size = jedis.lpush("foo", "bar", "foo");
assertEquals(4, size);
// Binary
long bsize = jedis.lpush(bfoo, bbar);
assertEquals(1, bsize);
bsize = jedis.lpush(bfoo, bfoo);
assertEquals(2, bsize);
bsize = jedis.lpush(bfoo, bbar, bfoo);
assertEquals(4, bsize);
}
@@ -620,4 +629,4 @@ public class ListCommandsTest extends JedisCommandTestBase {
assertEquals("a", jedis.lrange("bar", 0, -1).get(0));
}
}
}