Repository commit
a0b0f41
Python version (python --version)
Python 3.10.7
Dependencies version (pip freeze)
Not applicable - this is a logical bug, not dependency-related
Expected behavior
Consistent behavior across all methods when handling missing values:
- Either ALL methods should raise exceptions for invalid inputs
- Or ALL methods should return consistent sentinel values
- The behavior should be clearly documented
- No silent failures mixed with exceptions
Actual behavior
Inconsistent behavior:
compress(80) returns -1 (silent failure)
coordinate_map[80] raises KeyError (exception)
decompress(5) returns -1 (silent failure)
This mixed behavior can cause hard-to-debug issues.