In ASTJSON tests it's possible to include the following directive (in the input .sol file) to indicate that analysis failure is expected after the specified compilation state:
// ----
// failAfter: Parsed
Looks like isolest strips this directive when it updates test expectations and reformats the input file.
Steps to reproduce
- Change something in
fail_after_parsing_parseOnly.json so that the expectations do not match the output
- Run
isoltest --test=ASTJSON/fail_after_parsing --accept-updates.
The directive will disappear from the input file.
In
ASTJSONtests it's possible to include the following directive (in the input.solfile) to indicate that analysis failure is expected after the specified compilation state:Looks like
isoleststrips this directive when it updates test expectations and reformats the input file.Steps to reproduce
fail_after_parsing_parseOnly.jsonso that the expectations do not match the outputisoltest --test=ASTJSON/fail_after_parsing --accept-updates.The directive will disappear from the input file.