zeta eval: Allow no headings under "Expected Context" (#42638)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-11-13 15:43:22 +00:00
committed by GitHub
parent eadc2301e0
commit c2c5fceb5b
+5
View File
@@ -259,6 +259,11 @@ impl NamedExample {
if !text.ends_with('\n') {
text.push('\n');
}
if named.example.expected_context.is_empty() {
named.example.expected_context.push(Default::default());
}
let alternatives = &mut named
.example
.expected_context