diff --git a/cts.json b/cts.json index 2ff049c..72734cc 100644 --- a/cts.json +++ b/cts.json @@ -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" } ] diff --git a/redis_compatibility_test.py b/redis_compatibility_test.py index b83d982..3556cc5 100644 --- a/redis_compatibility_test.py +++ b/redis_compatibility_test.py @@ -49,7 +49,7 @@ 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()): @@ -57,7 +57,7 @@ def report_result(): 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)