Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A collection of language-agnostic tests in JSON format for parsing HTTP into api-pegjs' AST.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
draft_bortzmeyer_language_state_machines
draft_ietf_httpbis_p1_messaging
draft_ietf_httpbis_p2_semantics
rfc3986_uri
LICENSE
NOTICE
NOTICE2
README.md
package.json

README.md

API PEGjs tests

A collection of language-agnostic tests in JSON format for parsing into and generating from api-pegjs' AST.

This is part of a bigger effort: for-GET HTTP.

Structure

Each specification has its own folder with test suites.

Each ABNF rule in the specification has its own test suite as a JSON file.

Each JSON file is an array of test cases.

Each test case is structured as [description, input, result] for positive tests, and just [description, input] for negative tests.

input can be a string or a JSON reference pointing to a local file.

result is an AST.

License

Apache 2.0

Something went wrong with that request. Please try again.