rust-analyzer / expect-test

Minimalistic snapshot testing for Rust.
Apache License 2.0
248 stars 22 forks source link

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

Open xxchan opened 1 year ago

xxchan commented 1 year ago

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.