Commit be65da8
committed
fix(validation): correct Lithuanian century digit mapping and improve test coverage
- Fix critical bug in Lithuanian Personal Code year calculation
- Digit 3 now correctly maps to 1900s (was incorrectly 1800s)
- Replace flawed mathematical formula with clear if-else logic
- All century digits (1-8) now properly validated
- Add parseIdInfo support for Iceland, Lithuania, and Luxembourg
- Fix documentation discrepancy in package.json (103 → 80 countries)
- Add comprehensive test suite for 9 low-coverage countries (101 new tests)
- HUN, ISL, LTU, LUX, ALB, COL, HKG, IRN, ISR
- Improve overall test coverage from 61.95% to 68.24%
Coverage improvements:
- HKG: 20.00% → 100.00% (+80.00%)
- COL: 20.68% → 89.65% (+68.97%)
- ISL: 15.38% → 82.05% (+66.67%)
- LTU: 15.38% → 81.35% (+65.97%)
- HUN: 13.04% → 76.08% (+63.04%)
BREAKING: None
Fixes data integrity issue where Lithuanian IDs returned incorrect birth years1 parent aeaf7db commit be65da8
File tree
4 files changed
+424
-6
lines changed- src
- __tests__
- countries/ltu
4 files changed
+424
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments