RED: test all ones
This commit is contained in:
parent
9a22a3e5fe
commit
e4167c03a5
1 changed files with 10 additions and 0 deletions
|
|
@ -12,5 +12,15 @@ void main() {
|
||||||
|
|
||||||
expect(game.score(), 0);
|
expect(game.score(), 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('all ones - score is 20', () {
|
||||||
|
final game = BowlingGame();
|
||||||
|
|
||||||
|
for (int i = 0; i < 20; i++) {
|
||||||
|
game.roll(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
expect(game.score(), 20);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue