From e38bac9441837972eb668dd1affb24b3af18a111 Mon Sep 17 00:00:00 2001 From: fiatcode Date: Wed, 18 Feb 2026 12:56:05 +0700 Subject: [PATCH] RED: Test exposing empty string bug - Test expects empty string to return 0 - Currently returns 1 instead - Expected: <0>, Actual: <1> --- test/string_calculator_test.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/string_calculator_test.dart b/test/string_calculator_test.dart index fd7ceba..d48b197 100644 --- a/test/string_calculator_test.dart +++ b/test/string_calculator_test.dart @@ -9,6 +9,8 @@ void main() { calculator = StringCalculator(); }); - // Tests will be added as we hunt bugs + test('empty string returns 0', () { + expect(calculator.add(''), equals(0)); + }); }); }