From b79c8b6d8a3b38c94de992a54ffb9055c1ad6f31 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 27 Aug 2018 21:10:02 +0300 Subject: Fix error blocks --- crates/libanalysis/tests/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/libanalysis/tests') diff --git a/crates/libanalysis/tests/tests.rs b/crates/libanalysis/tests/tests.rs index b3c357b02..7c2950ccc 100644 --- a/crates/libanalysis/tests/tests.rs +++ b/crates/libanalysis/tests/tests.rs @@ -52,7 +52,8 @@ fn test_unresolved_module_diagnostic() { let snap = world.snapshot(|_id, _path| None); let diagnostics = snap.diagnostics(FileId(1)).unwrap(); assert_eq_dbg( - r#"[Diagnostic { range: [4; 7), msg: "unresolved module" }]"#, + r#"[(Diagnostic { range: [4; 7), msg: "unresolved module" }, + Some(CreateFile("../foo.rs")))]"#, &diagnostics, ); } -- cgit v1.2.3