mirror of
https://github.com/corn-config/test-suite.git
synced 2026-07-11 03:16:22 +01:00
Implementation-agnostic test files for Corn parsers
- Shell 100%
| .idea | ||
| corn | ||
| json | ||
| generate_tests.sh | ||
| README.md | ||
Corn tests
This repository contains test cases for the Corn configuration layout.
- The
cornfolder contains input test cases, in two categories:.pos.cornfiles contain positive cases, expected to succeed..neg.cornfiles 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.