[−][src]Macro pest::fails_with
Testing tool that compares produced errors.
This macro takes several arguments:
parser- name of the data structure implementingParserinput- input to be tested againstrule-Rulewhich will be runpositives- positiveRuleattempts that failednegative- negativeRuleattempts that failedpos- byte position of failure
Examples
fails_with! { parser: AbcParser, input: "abcdf", rule: Rule::a, positives: vec![Rule::c], negatives: vec![], pos: 4 };