Initial commit: Complete TDD workshop materials
- Workshop documentation (WORKSHOP_PLAN, FACILITATOR_GUIDE, etc.) - FizzBuzz kata with demo script (git history to be recreated) - Password Validator kata with demo script and solution - Shopping Cart kata with demo script and solution - Setup guide and TDD reference card for participants
This commit is contained in:
commit
c3355063f2
26 changed files with 4725 additions and 0 deletions
8
fizzbuzz/lib/fizzbuzz.dart
Normal file
8
fizzbuzz/lib/fizzbuzz.dart
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// FizzBuzz kata - TDD progression
|
||||
|
||||
String fizzBuzz(int n) {
|
||||
if (n % 15 == 0) return 'FizzBuzz';
|
||||
if (n % 3 == 0) return 'Fizz';
|
||||
if (n % 5 == 0) return 'Buzz';
|
||||
return n.toString();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue