TOML Conformance
Lanexio Parser supports both TOML v1.0.0 and v1.1.0 through a single package. The conformance suite validates valid input acceptance, invalid input rejection, the official toml-test corpus, a generated fuzz corpus, and real-world TOML documents (over 2,000 test files total).
Test results
Section titled “Test results”All tests pass across six categories:
- Official toml-test valid — 268 files, version-routed by spec-1.0.0 / spec-1.1.0
- Official toml-test invalid — 509 files, version-routed by spec-1.0.0 / spec-1.1.0
- Inline fixtures — curated valid/invalid coverage for all TOML features
- Generated corpus — fuzz-generated inputs, all parse safely
- Real-world documents — production TOML configs, all parse without error
- Cross-version fixtures — TOML 1.1.0 constructs rejected in 1.0.0 mode (\xHH escapes, seconds-less times, inline table newlines/trailing commas)
Version selection
Section titled “Version selection”parseToml(bytes) defaults to TOML v1.1.0. Use parseToml10(bytes) or parseToml11(bytes) for an explicit version. Incompatible constructs between versions are handled by the version-aware parser.
Four-axis bar
Section titled “Four-axis bar”| Axis | Result |
|---|---|
| never-throw | 0 throws across full corpus |
| well-formed | corpus WF = 0 |
| lossless | corpus lossless = 0, byte-exact round-trip |
| conformance | 2,000+ / 2,000+ |