diff options
Diffstat (limited to 'crates/libanalysis/tests')
-rw-r--r-- | crates/libanalysis/tests/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libanalysis/tests/tests.rs b/crates/libanalysis/tests/tests.rs index c098c8e8c..4fae7c313 100644 --- a/crates/libanalysis/tests/tests.rs +++ b/crates/libanalysis/tests/tests.rs | |||
@@ -126,7 +126,7 @@ fn test_resolve_crate_root() { | |||
126 | (1, "/lib.rs"), | 126 | (1, "/lib.rs"), |
127 | (2, "/foo.rs"), | 127 | (2, "/foo.rs"), |
128 | ])); | 128 | ])); |
129 | assert!(snap.crate_root(FileId(2)).is_empty()); | 129 | assert!(snap.crate_for(FileId(2)).is_empty()); |
130 | 130 | ||
131 | let crate_graph = CrateGraph { | 131 | let crate_graph = CrateGraph { |
132 | crate_roots: { | 132 | crate_roots: { |
@@ -142,7 +142,7 @@ fn test_resolve_crate_root() { | |||
142 | (2, "/foo.rs"), | 142 | (2, "/foo.rs"), |
143 | ])); | 143 | ])); |
144 | assert_eq!( | 144 | assert_eq!( |
145 | snap.crate_root(FileId(2)), | 145 | snap.crate_for(FileId(2)), |
146 | vec![CrateId(1)], | 146 | vec![CrateId(1)], |
147 | ); | 147 | ); |
148 | } | 148 | } |