Added bunch of missing commands and a test to check if Jedis is updated

This commit is contained in:
Jonathan Leibiusky
2010-09-14 12:08:56 -03:00
parent 9b202c3fb1
commit a8ffacd30a
7 changed files with 179 additions and 2 deletions

View File

@@ -169,4 +169,10 @@ public class StringValuesCommandsTest extends JedisCommandTestBase {
assertEquals("This is a string", jedis.substr("s", 0, -1));
assertEquals(" string", jedis.substr("s", 9, 100000));
}
@Test
public void strlen() {
jedis.set("s", "This is a string");
assertEquals("This is a string".length(), jedis.strlen("s"));
}
}