Thanks to visit codestin.com
Credit goes to github.com

Skip to content

corn-config/test-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Implementation-agnostic test files for Corn parsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages