Skip to content

Commit

Permalink
Merge pull request #6 from tair-opensource/add-hll
Browse files Browse the repository at this point in the history
feat: add support for hll
  • Loading branch information
yangbodong22011 committed Jul 24, 2023
2 parents 8c6e440 + 45975c0 commit 1a30769
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
43 changes: 43 additions & 0 deletions cts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3951,5 +3951,48 @@
1
],
"since": "2.2.0"
},

{
"name": "pfadd command",
"command": [
"pfadd hll a b c d e",
"pfcount hll"
],
"result": [
1,
5
],
"since": "2.8.9"
},

{
"name": "pfcount command",
"command": [
"pfadd hll a b c d e",
"pfcount hll"
],
"result": [
1,
5
],
"since": "2.8.9"
},

{
"name": "pfmerge command",
"command": [
"pfadd hll1 0 1",
"pfadd hll2 2 3",
"pfmerge hll0 hll1 hll2",
"pfcount hll0"
],
"result": [
1,
1,
"OK",
4
],
"since": "2.8.9"
}
]
4 changes: 2 additions & 2 deletions redis_compatibility_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def report_result():
f"rate: {repr(passed / total * 100)}%")
if args.show_failed and len(failed) != 0:
print(f"This is failed tests for {args.specific_version}:")
print(failed)
print('\n'.join(str(fail) for fail in failed))
exit(-1)
else:
for v, t in sorted(g_results.items()):
print(f"version: {v}, total tests: {t.total}, passed: {t.passed}, "
f"rate: {repr(t.passed / t.total * 100)}%")
if args.show_failed and len(t.failed) != 0:
print(f"This is failed tests for {v}:")
print(t.failed)
print('\n'.join(str(fail) for fail in t.failed))
exit(-1)


Expand Down

0 comments on commit 1a30769

Please sign in to comment.