X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/437ad53ea7539d36db3fa871d0931650b7a6a03e..17dd58775e25ab495e3c83deb4b5a36f5e5a124b:/scripts/check-cxtm.py diff --git a/scripts/check-cxtm.py b/scripts/check-cxtm.py index 70ceecb..d732a5f 100644 --- a/scripts/check-cxtm.py +++ b/scripts/check-cxtm.py @@ -8,7 +8,7 @@ root = pathlib.Path(__file__).resolve().parent.parent report = json.loads(pathlib.Path(sys.argv[1]).read_text()) assert report['kind'] == 'cxtm-byte-equality' and report['failed'] == 0 assert report['passed'] == len(report['checks']) == len(set(report['checks'])) -expected_count = 28 if len(sys.argv) > 2 and sys.argv[2] == '--slice-5' else 24 +expected_count = {'--slice-5': 28, '--slice-6': 33, '--slice-7': 39}.get(sys.argv[2] if len(sys.argv) > 2 else '', 24) assert len(report['cases']) == expected_count for case in report['cases']: actual = case['actualCXTM'].encode('utf-8')