8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
expect!
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
My env:
$ rustc --version rustc 1.86.0 (05f9846f8 2025-03-31) $ cat Cargo.toml ... [dev-dependencies] expect-test = "1.5.1"
Here is a mini test case to reproduce:
#[test] fn expect_test_bug() { use expect_test::expect; expect![].assert_eq("X\n Y\n \nZ"); }
After run
$ env UPDATE_EXPECT=1 cargo test
This test block will be updated to
#[test] fn expect_test_bug() { use expect_test::expect; expect![[r#" X Y Z"#]].assert_eq("X\n Y\n \nZ"); }
Then run cargo test, it fails because missing four spaces between Y and Z in Expect
cargo test
Y
Z
Expect
$ cargo test Expect: ---- X Y Z ---- Actual: ---- X Y Z ---- Diff: ---- X Y Z ----
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My env:
Here is a mini test case to reproduce:
After run
This test block will be updated to
Then run
cargo test
, it fails because missing four spaces betweenY
andZ
inExpect
The text was updated successfully, but these errors were encountered: