Skip to main content

Module golden

Module golden 

Source
Expand description

The golden corpus: statements accepted and refused, and the answer this release gives each, committed so that every implementation of the parse (the parser process, the platform, the test host) is checked against fixed bytes rather than against itself.

An answer is a tree’s canonical text, or ! and the refusal’s kind (!syntax, !too_large, !unavailable).

Constants§

ANSWERS
The answer to each statement of cases, one a line, in order.
STATEMENTS
The statements past the probe corpus, one a line.

Functions§

answer
A parse’s answer as the corpus writes it.
cases
Each statement with its committed answer.
kind
A refusal’s kind, as the wire names it.
statements
The probe corpus’s statements, then STATEMENTS.