X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/437ad53ea7539d36db3fa871d0931650b7a6a03e..2ad41cd1a945a4ce97824464de40646bb899259e:/scripts/check-cxtm.py?ds=sidebyside diff --git a/scripts/check-cxtm.py b/scripts/check-cxtm.py index 70ceecb..5095332 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, '--slice-8': 46, '--slice-9': 51}.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')