添加长整形测试

This commit is contained in:
LingZhaoHui 2020-09-15 22:43:11 +08:00
parent d0c8a4407e
commit 6291a7b215
1 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,17 @@ public class RedisPoolTest {
System.out.println("--------------end test string--------------------");
}
@Test
public void testLong(){
System.out.println("--------------begin test long--------------------");
double score = Math.E;
System.out.println(score);
jedis.set("score", String.valueOf(score));
double res = Double.parseDouble(jedis.get("score"));
System.out.println(res);
System.out.println("--------------end test long--------------------");
}
@Test
public void testMap() {
System.out.println("--------------begin test map--------------------");