No description
  • Java 20.5%
  • TypeScript 15.7%
  • PHP 15.7%
  • JavaScript 15%
  • Rust 12.9%
  • Other 20.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-11-12 21:28:12 +01:00
cs Initial commit 2023-06-06 10:45:28 +02:00
java Revert "Cleanup java" 2024-11-12 21:28:12 +01:00
js js: add Calculator test 2023-06-06 17:01:10 +02:00
php php: finish 2023-06-06 20:04:46 +02:00
powershell Initial commit 2023-06-06 10:45:28 +02:00
python Add php implementation (wip) 2023-06-06 17:27:40 +02:00
rust Update README.md 2023-06-06 17:12:18 +02:00
ts Make the kata clearer 2023-06-06 16:58:06 +02:00
README.md Update README.md 2023-06-06 16:58:48 +02:00

Buggy FizzBuzz

Here are the FizzBuzz rules:

  • If number is divisible by 3, return "fizz"
  • If number is divisible by 5, return "buzz"
  • If number is divisible by 3 and 5, return "fizzbuzz"
  • Otherwise, return the number (as a string)

Instructions

  • Run the main application
  • Run the tests - they should pass
  • You should discover hat the code is buggy
  • Write a test that shows there's a bug - it should fail - you can get inspiration from the existing Calculator.add test
  • Fix the bug
  • Test should now pass