aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils
diff options
context:
space:
mode:
Diffstat (limited to 'crates/test_utils')
-rw-r--r--crates/test_utils/src/fixture.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/test_utils/src/fixture.rs b/crates/test_utils/src/fixture.rs
index 8747fa4a5..7e93fbcd6 100644
--- a/crates/test_utils/src/fixture.rs
+++ b/crates/test_utils/src/fixture.rs
@@ -30,7 +30,9 @@ impl Fixture {
30 30
31 let mut res: Vec<Fixture> = Vec::new(); 31 let mut res: Vec<Fixture> = Vec::new();
32 32
33 for (ix, line) in lines_with_ends(&fixture).enumerate() { 33 let default = if ra_fixture.contains("//-") { None } else { Some("//- /main.rs") };
34
35 for (ix, line) in default.into_iter().chain(lines_with_ends(&fixture)).enumerate() {
34 if line.contains("//-") { 36 if line.contains("//-") {
35 assert!( 37 assert!(
36 line.starts_with("//-"), 38 line.starts_with("//-"),