Skip to content

isoltest strips failAfter directive from ASTJSON tests when it reformats them #14093

@cameel

Description

@cameel

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

  1. Change something in fail_after_parsing_parseOnly.json so that the expectations do not match the output
  2. Run isoltest --test=ASTJSON/fail_after_parsing --accept-updates.

The directive will disappear from the input file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛low effortThere is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.testing 🔨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions