Implementation-agnostic test files for Corn parsers
Find a file
2025-10-28 14:14:45 +00:00
.idea initial commit 2025-07-27 17:33:17 +01:00
corn feat(whitespace): add more tests 2025-10-28 14:14:45 +00:00
json feat(whitespace): add more tests 2025-10-28 14:14:45 +00:00
generate_tests.sh feat: add json outputs for v0.10 spec 2025-07-28 22:58:19 +01:00
README.md initial commit 2025-07-27 17:33:17 +01:00

Corn tests

This repository contains test cases for the Corn configuration layout.

  • The corn folder contains input test cases, in two categories:
    • .pos.corn files contain positive cases, expected to succeed.
    • .neg.corn files contain negative cases, expected to fail.

Each positive case is backed with a JSON file containing the expected output. Any parser implementations are expected to parse each positive case, and each corresponding JSON file, and perform a deep equality check. Any difference in equality is considered a test failure.

For floats, a literal equality check of course cannot be performed. Instead this should be checked within a reasonable margin of error.

Negative tests always include a single value only.