jdeppe-pivotal commented on a change in pull request #6735:
URL: https://github.com/apache/geode/pull/6735#discussion_r690431008
##########
File path:
geode-apis-compatible-with-redis/src/test/java/org/apache/geode/redis/internal/data/RedisSortedSetTest.java
##########
@@ -278,6 +279,84 @@ public void
zrange_shouldAlsoReturnScores_whenWithScoresSpecified() {
"member6".getBytes(), "1.5".getBytes());
}
+ @Test
+ public void zlexcount_shouldBeInclusiveWhenSpecified() {
+ RedisSortedSet sortedSet = createRedisSortedSet(
+ "1.1", "member1",
+ "1.1", "member2",
+ "1.1", "member3",
+ "1.1", "member4",
+ "1.1", "member5");
+ SortedSetLexRangeOptions lexOptions =
+ new SortedSetLexRangeOptions("[member1".getBytes(),
"[member3".getBytes());
+ assertThat(sortedSet.zlexcount(lexOptions)).isEqualTo(3);
+ }
+
+ @Test
+ public void zlexcount_shouldBeExclusiveWhenSpecified() {
+ RedisSortedSet sortedSet = createRedisSortedSet(
+ "1.1", "member1",
+ "1.1", "member2",
+ "1.1", "member3",
+ "1.1", "member4",
+ "1.1", "member5");
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]