Skip to content

Commit

Permalink
Update HyperLogLogExample.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Jan 3, 2024
1 parent 38253fa commit 0f85c0a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/java/io/redis/examples/HyperLogLogExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.junit.Assert;
import org.junit.Test;
import redis.clients.jedis.UnifiedJedis;

public class HyperLogLogExample {

@Test
Expand All @@ -29,12 +30,12 @@ public void run() {
String res4 = jedis.pfmerge("all_bikes", "bikes", "commuter_bikes");
System.out.println(res4); // >>> OK

long res5 = jedis.pfcount("all_bikes");
System.out.println(res5); // >>> 6
// STEP_END

// REMOVE_START
Assert.assertEquals("OK", res4);
// REMOVE_END

long res5 = jedis.pfcount("all_bikes");
System.out.println(res5); // >>> 6
// STEP_END
}
}

0 comments on commit 0f85c0a

Please sign in to comment.