Skip to content

Testing

Zig tests

cd zig_src && zig build test

Covers unit tests for all modules: data structures, enums, validation, editing, grouping, MCE pipeline.

Python tests

python -m pytest tests/test_grouper.py tests/test_mce.py -v

Covers MS-DRG grouping, MCE editing, lifecycle, edge cases, and error handling.

Comparison testing

# Compare MS-DRG against Java reference
python tests/compare_groupers.py --file tests/test_claims.json

# Compare MCE against Java reference
python tests/compare_mce.py --file tests/test_claims.json

Requires JDK 17+ and reference JARs in jars/.