10531054105510561057105810591060106110621063
public void tupleCompare() { Tuple t1 = new Tuple("foo", 1d); Tuple t2 = new Tuple("bar", 2d); assertEquals(-1, t1.compareTo(t2)); assertEquals(1, t2.compareTo(t1)); assertEquals(0, t2.compareTo(t2)); } @Test public void zscan() {
10541055105610571058105910601061106210631064
Tuple t1 = new Tuple("foo", 1d); Tuple t2 = new Tuple("bar", 2d); assertEquals(-1, t1.compareTo(t2)); assertEquals(1, t2.compareTo(t1)); assertEquals(0, t2.compareTo(t2)); } @Test public void zscan() { jedis.zadd("foo", 1, "a");