From bdbf5bfd8d6e5b6cb4a2f78bed6d2e9672f3fe0a Mon Sep 17 00:00:00 2001 From: Rajat Singh Date: Thu, 21 May 2020 02:26:06 -0700 Subject: [PATCH] fix:Added extra test cases for 'arguments-optional' problem (#38827) --- .../arguments-optional.english.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.english.md index b42494b521..3f77fcb655 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.english.md @@ -28,8 +28,10 @@ If either argument isn't a valid number, return undefined. tests: - text: addTogether(2, 3) should return 5. testString: assert.deepEqual(addTogether(2, 3), 5); - - text: addTogether(2)(3) should return 5. - testString: assert.deepEqual(addTogether(2)(3), 5); + - text: addTogether(23, 30) should return 53. + testString: assert.deepEqual(addTogether(23, 30), 53); + - text: addTogether(5)(7) should return 12. + testString: assert.deepEqual(addTogether(5)(7), 12); - text: addTogether("http://bit.ly/IqT6zt") should return undefined. testString: assert.isUndefined(addTogether("http://bit.ly/IqT6zt")); - text: addTogether(2, "3") should return undefined.