common/exercises/bowling/canonical-data.json in trackler-2.0.0.3 vs common/exercises/bowling/canonical-data.json in trackler-2.0.0.4
- old
+ new
@@ -84,19 +84,27 @@
}, {
"description": "two rolls in a frame can not score more than 10 points",
"rolls": [5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expected": -1
}, {
+ "description": "bonus roll after a strike in the last frame can not score more than 10 points",
+ "rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11],
+ "expected": -1
+ }, {
"description": "two bonus rolls after a strike in the last frame can not score more than 10 points",
"rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5, 6],
"expected": -1
}, {
"description": "two bonus rolls after a strike in the last frame can score more than 10 points if one is a strike",
"rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 6],
"expected": 26
}, {
"description": "the second bonus rolls after a strike in the last frame can not be a strike if the first one is not a strike",
"rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 6, 10],
+ "expected": -1
+ }, {
+ "description": "second bonus roll after a strike in the last frame can not score than 10 points",
+ "rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 11],
"expected": -1
}, {
"description": "an unstarted game can not be scored",
"rolls": [],
"expected": -1