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

test: add format idempotency test #285

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

Scott8440
Copy link
Contributor

Expands format tests to also test idempotency - format(format(source)) == format(source)

Addresses #278

@peterhuene
Copy link
Collaborator

It looks like the latest Rust toolchain introduced some new static analysis warnings.

We'll work on fixing the source and we can rebase all affected PRs once it merges.

@a-frantz a-frantz linked an issue Jan 10, 2025 that may be closed by this pull request
Copy link
Member

@a-frantz a-frantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two nits, otherwise this looks pretty great! Plus I learned a new word, idempotency 😅

wdl-format/tests/format.rs Outdated Show resolved Hide resolved
wdl-format/tests/format.rs Outdated Show resolved Hide resolved
Copy link
Member

@adthrasher adthrasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending @a-frantz's suggestions, looks good

@claymcleod
Copy link
Member

You should be good to rebase your changes on the main branch and see where the CI is at now.

@peterhuene
Copy link
Collaborator

I have a fix for the failing Windows test (we're not properly tripping the line endings in commands and multiline strings, leaving behind a trailing \r character which doesn't easily show up on the diffs).

Once my fix PR merges, we can rebase this PR and it should hopefully go green.

@peterhuene
Copy link
Collaborator

We can now rebase this on main.

@peterhuene peterhuene merged commit af42636 into stjude-rust-labs:main Jan 14, 2025
16 checks passed
@peterhuene
Copy link
Collaborator

@Scott8440 thanks again for this contribution!

@Scott8440
Copy link
Contributor Author

Thanks for finishing the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expand format tests to ensure double formatting is sane
5 participants