Skip to content

cranelift-frontend: Make assert_eq_output! usable in the whole crate#9070

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
fitzgen:make-assert-eq-output-usable-in-whole-crate
Aug 2, 2024
Merged

cranelift-frontend: Make assert_eq_output! usable in the whole crate#9070
alexcrichton merged 1 commit intobytecodealliance:mainfrom
fitzgen:make-assert-eq-output-usable-in-whole-crate

Conversation

@fitzgen
Copy link
Copy Markdown
Member

@fitzgen fitzgen commented Aug 2, 2024

This moves the macro to lib.rs so that it can be used in all the tests in the whole crate. It also makes it a little more usable by trimming whitespace and printing both the expected and actual values, in addition to the diff.

A follow-up commit will migrate various uses of assert_eq! over to it.

This moves the macro to `lib.rs` so that it can be used in all the tests in the
whole crate. It also makes it a little more usable by trimming whitespace and
printing both the expected and actual values, in addition to the diff.

A follow-up commit will migrate various uses of `assert_eq!` over to it.

Co-Authored-By: Trevor Elliot <telliott@fastly.com>
@fitzgen fitzgen requested a review from a team as a code owner August 2, 2024 19:07
@fitzgen fitzgen requested review from cfallin and removed request for a team August 2, 2024 19:07
@alexcrichton alexcrichton enabled auto-merge August 2, 2024 19:10
@alexcrichton alexcrichton added this pull request to the merge queue Aug 2, 2024
Merged via the queue into bytecodealliance:main with commit db0d9c7 Aug 2, 2024
@fitzgen fitzgen deleted the make-assert-eq-output-usable-in-whole-crate branch August 2, 2024 19:33
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.

2 participants