Commit 10b944d
authored
feat: add cross-format integration tests and CLI end-to-end tests (#42)
- Add tests/cross_format.rs with 45 integration tests covering:
- All format pair roundtrips: JSON↔YAML, JSON↔TOML, JSON↔CSV,
YAML↔TOML, YAML↔CSV, TOML↔CSV
- Three-format chains: JSON→YAML→TOML→JSON, YAML→TOML→JSON→YAML,
JSON→CSV→YAML→JSON, CSV→JSON→TOML→CSV
- Format-specific limitations: TOML top-level array rejection,
TOML null→string conversion, CSV nested object flattening,
CSV type inference, TOML datetime→string
- Unicode cross-format roundtrips
- Large dataset (500 rows) cross-format roundtrips
- 11 CLI end-to-end tests: json→yaml, yaml→json, json→toml,
csv→json, json→csv, --formats flag, file output, stdin→stdout,
unknown format error, --pretty flag, --compact flag
- Fix CSV float serialization to preserve decimal point (87.0 not 87)
Fixes #141 parent a005106 commit 10b944d
2 files changed
+864
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
210 | 224 | | |
211 | 225 | | |
212 | 226 | | |
| |||
0 commit comments