aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-02 14:36:03 +0100
committerAleksey Kladov <[email protected]>2018-09-02 14:36:03 +0100
commite98d8cd255ab5c2fee873a58af6c2c3ad561dab4 (patch)
tree04869b8fe93e724d8aa266177e48644051331ab9 /crates/libanalysis/tests
parent1329dd4e287c137ec0a90abeec0272275b2b2c8d (diff)
nail down runnables
Diffstat (limited to 'crates/libanalysis/tests')
-rw-r--r--crates/libanalysis/tests/tests.rs4
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}