Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve stringify.rs test #117114

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Commits on Oct 24, 2023

  1. Redo stringify.rs test.

    Currently it only tests AST pretty-printing. This commit changes it to
    run every example through both AST pretty-printing and TokenStream
    pretty-printing. This makes it clear where there two pretty-printing
    approaches produce different results.
    nnethercote committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    f0a2635 View commit details
    Browse the repository at this point in the history
  2. Augment stringify.rs test.

    By adding tests (or placeholders, or comments) for missing AST variants.
    nnethercote committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    2e2e780 View commit details
    Browse the repository at this point in the history
  3. Augment stringify.rs test some more.

    By making some case more complex, adding some new cases, tweaking
    formatting, and removing unnecessary `rustfmt` attributes.
    nnethercote committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    c1800fb View commit details
    Browse the repository at this point in the history