aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/test_utils/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index 2432177b4..a0d8f4d37 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -207,7 +207,12 @@ pub fn parse_single_fixture(fixture: &str) -> Option<FixtureEntry> {
207 if !fixture.lines().any(|it| it.trim_start().starts_with("//-")) { 207 if !fixture.lines().any(|it| it.trim_start().starts_with("//-")) {
208 return None; 208 return None;
209 } 209 }
210 parse_fixture(fixture).into_iter().nth(0) 210
211 let fixtures = parse_fixture(fixture);
212 if fixtures.len() > 1 {
213 panic!("too many fixtures");
214 }
215 fixtures.into_iter().nth(0)
211} 216}
212 217
213// Comparison functionality borrowed from cargo: 218// Comparison functionality borrowed from cargo: