From ac81543482311d5c41c9aeff26f9daaf93d17b7a Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Fri, 18 Sep 2026 21:38:18 -0400 Subject: [PATCH] Name the new question option fields in the interview tests Petri's QuestionOption gained optional description and preview fields at 639ce3e; the four test initializers now set them to None. Co-Authored-By: Claude Fable 5.1 --- lib/components/fabro-petri/src/interview.rs | 24 ++++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/components/fabro-petri/src/interview.rs b/lib/components/fabro-petri/src/interview.rs index 09c2bbfa7..53e36cce7 100644 --- a/lib/components/fabro-petri/src/interview.rs +++ b/lib/components/fabro-petri/src/interview.rs @@ -708,12 +708,16 @@ mod tests { let mut question = Question::new("gate#3", "Go?"); question.options = vec![ QuestionOption { - key: "Y".into(), - label: "[Y] Yes".into(), + key: "Y".into(), + label: "[Y] Yes".into(), + description: None, + preview: None, }, QuestionOption { - key: "N".into(), - label: "[N] No".into(), + key: "N".into(), + label: "[N] No".into(), + description: None, + preview: None, }, ]; question.kind = Some("yes_no".into()); @@ -734,12 +738,16 @@ mod tests { let mut approve = Question::new("q", "Ship?"); approve.options = vec![ QuestionOption { - key: "A".into(), - label: "Approve".into(), + key: "A".into(), + label: "Approve".into(), + description: None, + preview: None, }, QuestionOption { - key: "R".into(), - label: "Reject".into(), + key: "R".into(), + label: "Reject".into(), + description: None, + preview: None, }, ]; assert_eq!(