From 842bd6718436c3d31dfa99a123c9ade3b09f9027 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:19:24 +0900 Subject: test: port TransactionTest and StrictConfirmationQuestionTest as stubs TransactionTest needs Transaction::new (uasort_map todo!()) and non-root link setters; StrictConfirmationQuestionTest needs Symfony QuestionHelper. Both stubbed. Wires up the question test target. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../question/strict_confirmation_question_test.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'crates/shirabe/tests/question/strict_confirmation_question_test.rs') diff --git a/crates/shirabe/tests/question/strict_confirmation_question_test.rs b/crates/shirabe/tests/question/strict_confirmation_question_test.rs index e5a3299..9045461 100644 --- a/crates/shirabe/tests/question/strict_confirmation_question_test.rs +++ b/crates/shirabe/tests/question/strict_confirmation_question_test.rs @@ -1 +1,23 @@ //! ref: composer/tests/Composer/Test/Question/StrictConfirmationQuestionTest.php + +// These drive StrictConfirmationQuestion through Symfony's QuestionHelper::ask using +// ArrayInput/StreamOutput, none of which are ported. The question's normalizer and +// validator are private, so they cannot be exercised directly either. + +#[test] +#[ignore = "needs Symfony QuestionHelper::ask with ArrayInput/StreamOutput, which are not ported"] +fn test_ask_confirmation_bad_answer() { + todo!() +} + +#[test] +#[ignore = "needs Symfony QuestionHelper::ask with ArrayInput/StreamOutput, which are not ported"] +fn test_ask_confirmation() { + todo!() +} + +#[test] +#[ignore = "needs Symfony QuestionHelper::ask with ArrayInput/StreamOutput, which are not ported"] +fn test_ask_confirmation_with_custom_true_and_false_answer() { + todo!() +} -- cgit v1.3.1