Skip to content

Commit

Permalink
Redis 6 LRANGE is changed again (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Sep 8, 2019
1 parent 672a5db commit b54977b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.junit.Test;
Expand Down Expand Up @@ -128,7 +129,8 @@ public void lrange() {
range = jedis.lrange("foo", 1, 2);
assertEquals(expected, range);

assertNull(jedis.lrange("foo", 2, 1));
range = jedis.lrange("foo", 2, 1);
assertEquals(Collections.<String>emptyList(), range);

// Binary
jedis.rpush(bfoo, bA);
Expand All @@ -153,7 +155,8 @@ public void lrange() {
brange = jedis.lrange(bfoo, 1, 2);
assertByteArrayListEquals(bexpected, brange);

assertNull(jedis.lrange(bfoo, 2, 1));
brange = jedis.lrange(bfoo, 2, 1);
assertByteArrayListEquals(Collections.<byte[]>emptyList(), brange);

}

Expand Down

0 comments on commit b54977b

Please sign in to comment.