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

Couldn't find closing delimiter for [[]] #37

Open
xxchan opened this issue May 18, 2023 · 0 comments · May be fixed by #38
Open

Couldn't find closing delimiter for [[]] #37

xxchan opened this issue May 18, 2023 · 0 comments · May be fixed by #38

Comments

@xxchan
Copy link
Contributor

xxchan commented May 18, 2023

fn check(a: i32, expect: expect_test::Expect) {
    expect.assert_eq(&a.to_string());
}

#[test]
fn test1() {
    check(1, expect_test::expect![[]]);
}

UPDATE_EXPECT=1 cargo test reports error.

@xxchan xxchan linked a pull request May 18, 2023 that will close this issue
xxchan added a commit to xxchan/expect-test that referenced this issue Dec 19, 2024
Currently recommended `expect![[]]` is broken rust-analyzer#37, and rust-analyzer#38 is blocked for long time, so maybe we can update the recommendation to a safer option instead.

Signed-off-by: xxchan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant