diff --git a/curriculum/challenges/english/blocks/lab-golf-score-translator/689f7996426c1534fa5bea66.md b/curriculum/challenges/english/blocks/lab-golf-score-translator/689f7996426c1534fa5bea66.md index ebca68e7446..5bc281b4d7a 100644 --- a/curriculum/challenges/english/blocks/lab-golf-score-translator/689f7996426c1534fa5bea66.md +++ b/curriculum/challenges/english/blocks/lab-golf-score-translator/689f7996426c1534fa5bea66.md @@ -46,12 +46,30 @@ assert.lengthOf(golfScore, 2); assert.isString(golfScore(4,1)); ``` +`golfScore(1, 1)` should return the string `Hole-in-one!` + +```js +assert.strictEqual(golfScore(1,1), 'Hole-in-one!'); +``` + +`golfScore(3, 1)` should return the string `Hole-in-one!` + +```js +assert.strictEqual(golfScore(3,1), 'Hole-in-one!'); +``` + `golfScore(4, 1)` should return the string `Hole-in-one!` ```js assert.strictEqual(golfScore(4,1), 'Hole-in-one!'); ``` +`golfScore(5, 1)` should return the string `Hole-in-one!` + +```js +assert.strictEqual(golfScore(5,1), 'Hole-in-one!'); +``` + `golfScore(4, 2)` should return the string `Eagle` ```js @@ -64,46 +82,88 @@ assert.strictEqual(golfScore(4,2), 'Eagle'); assert.strictEqual(golfScore(5,2), 'Eagle'); ``` +`golfScore(3, 2)` should return the string `Birdie` + +```js +assert.strictEqual(golfScore(3,2), 'Birdie'); +``` + `golfScore(4, 3)` should return the string `Birdie` ```js assert.strictEqual(golfScore(4,3), 'Birdie'); ``` +`golfScore(5, 4)` should return the string `Birdie` + +```js +assert.strictEqual(golfScore(5,4), 'Birdie'); +``` + +`golfScore(3, 3)` should return the string `Par` + +```js +assert.strictEqual(golfScore(3,3), 'Par'); +``` + `golfScore(4, 4)` should return the string `Par` ```js assert.strictEqual(golfScore(4,4), 'Par'); ``` -`golfScore(1, 1)` should return the string `Hole-in-one!` - -```js -assert.strictEqual(golfScore(1,1), 'Hole-in-one!'); -``` - `golfScore(5, 5)` should return the string `Par` ```js assert.strictEqual(golfScore(5,5), 'Par'); ``` +`golfScore(3, 4)` should return the string `Bogey` + +```js +assert.strictEqual(golfScore(3,4), 'Bogey'); +``` + `golfScore(4, 5)` should return the string `Bogey` ```js assert.strictEqual(golfScore(4,5), 'Bogey'); ``` +`golfScore(5, 6)` should return the string `Bogey` + +```js +assert.strictEqual(golfScore(5,6), 'Bogey'); +``` + +`golfScore(3, 5)` should return the string `Double Bogey` + +```js +assert.strictEqual(golfScore(3,5), 'Double Bogey'); +``` + `golfScore(4, 6)` should return the string `Double Bogey` ```js assert.strictEqual(golfScore(4,6), 'Double Bogey'); ``` -`golfScore(4, 7)` should return the string `Go Home!` +`golfScore(5, 7)` should return the string `Double Bogey` ```js -assert.strictEqual(golfScore(4,7), 'Go Home!'); +assert.strictEqual(golfScore(5,7), 'Double Bogey'); +``` + +`golfScore(3, 7)` should return the string `Go Home!` + +```js +assert.strictEqual(golfScore(3,7), 'Go Home!'); +``` + +`golfScore(4, 8)` should return the string `Go Home!` + +```js +assert.strictEqual(golfScore(4,8), 'Go Home!'); ``` `golfScore(5, 9)` should return the string `Go Home!` @@ -121,7 +181,6 @@ const names = ["Hole-in-one!", "Eagle", "Birdie", "Par", "Bogey", "Double Bogey" ``` - # --solutions-- ```js @@ -153,4 +212,3 @@ function golfScore(par, strokes) { return "Go Home!"; } ``` -