codex/add-tests-for-backward-compatibility-64u61y

This commit is contained in:
Ahmed Ibrahim
2025-09-17 15:17:57 -07:00
parent c61c736b4f
commit 760d4d5704
+4 -6
View File
@@ -1558,12 +1558,10 @@ mod tests {
}),
) => {
assert_eq!(summary.len(), 1);
match &summary[0] {
ReasoningItemReasoningSummary::SummaryText { text } => {
assert_eq!(text, "Summarized thoughts");
}
other => panic!("unexpected summary variant: {other:?}"),
}
let ReasoningItemReasoningSummary::SummaryText { text } = &summary[0] else {
panic!("unexpected summary variant: {summary:?}");
};
assert_eq!(text, "Summarized thoughts");
let reasoning_content = content.expect("expected reasoning content");
assert_eq!(reasoning_content.len(), 1);
if let ReasoningItemContent::ReasoningText { text } = &reasoning_content[0] {