|
|
d38a8c1107
|
format code
|
2026-02-18 14:29:55 +07:00 |
|
|
|
ab5a97acc8
|
GREEN: Implement feature to ignore numbers > 1000
- Added .where((n) => n <= 1000) filter
- Numbers greater than 1000 now excluded from sum
- Tests pass: '2,1001' returns 2, '1000,1001,2' returns 1002
|
2026-02-18 12:59:01 +07:00 |
|
|
|
e0417f0b62
|
GREEN: Fix custom delimiter bug
- Uncommented delimiter extraction line
- Now properly extracts custom delimiter from format '//[delimiter]\n'
- Tests pass: '//;\n1;2' returns 3, '//|\n10|20|30' returns 60
|
2026-02-18 12:58:09 +07:00 |
|
|
|
073afc0ab6
|
fix: Introduce real custom delimiter bug
- Comment out delimiter extraction line
- Custom delimiter now never gets extracted
- Will fail when testing '//;\n1;2'
|
2026-02-18 12:57:49 +07:00 |
|
|
|
0a6da5a651
|
GREEN: Fix summation loop bug
- Changed loop condition from 'i < length - 1' to 'i < length'
- Now includes last element in sum
- Tests pass: '1,2' returns 3, '1,2,3' returns 6
|
2026-02-18 12:57:05 +07:00 |
|
|
|
77d48e790a
|
GREEN: Fix single number parsing bug
- Removed +1 off-by-one error from single number parsing
- Now correctly returns the parsed number
- Tests pass: '5' returns 5, '42' returns 42
|
2026-02-18 12:56:40 +07:00 |
|
|
|
164adf815d
|
GREEN: Fix empty string bug
- Changed return value from 1 to 0 for empty string
- Test now passes: empty string returns 0
|
2026-02-18 12:56:17 +07:00 |
|
|
|
279c381872
|
feat: Add buggy String Calculator implementation
- Implements basic string calculator with 5 intentional bugs
- Bug 1: Empty string returns 1 instead of 0
- Bug 2: Single number has off-by-one error
- Bug 3: Summation loop misses last element
- Bug 4: Newline delimiter not properly handled
- Bug 5: Custom delimiter parsing broken
- Ready for Bug Hunt Kata with TDD approach
|
2026-02-18 12:55:51 +07:00 |
|