diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index 2432177b41..a0d8f4d376 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 { if !fixture.lines().any(|it| it.trim_start().starts_with("//-")) { return None; } - parse_fixture(fixture).into_iter().nth(0) + + let fixtures = parse_fixture(fixture); + if fixtures.len() > 1 { + panic!("too many fixtures"); + } + fixtures.into_iter().nth(0) } // Comparison functionality borrowed from cargo: