FileExamples

Files for Parser Testing

A comprehensive set of files for testing file parsers across formats. Includes valid files at various sizes for testing performance, and intentionally broken files for testing error detection and recovery. Whether you are building a JSON parser, CSV importer, XML processor, or PDF renderer, these files cover the most important test cases.

JSON Parser Testing

Valid and invalid JSON files for testing JSON.parse(), streaming parsers, and schema validators.

CSV Parser Testing

Valid and problematic CSV files for testing delimited data parsers.

XML Parser Testing

Valid and malformed XML files for testing DOM and SAX parsers.

Binary Format Testing

Binary files for testing format detection and binary parsers.

Frequently Asked Questions

How do I test parser performance?

Use files of increasing size (1KB, 100KB, 1MB, 10MB) and measure parse time and memory usage. This reveals O(n) vs O(n²) scaling issues.

What edge cases should I test?

Empty files, files with BOM, files with wrong encoding, deeply nested structures, very long lines, and files that are technically valid but adversarial (billion laughs, zip bombs).