fix:Added extra test cases for 'arguments-optional' problem (#38827)
This commit is contained in:
@ -28,8 +28,10 @@ If either argument isn't a valid number, return undefined.
|
||||
tests:
|
||||
- text: <code>addTogether(2, 3)</code> should return 5.
|
||||
testString: assert.deepEqual(addTogether(2, 3), 5);
|
||||
- text: <code>addTogether(2)(3)</code> should return 5.
|
||||
testString: assert.deepEqual(addTogether(2)(3), 5);
|
||||
- text: <code>addTogether(23, 30)</code> should return 53.
|
||||
testString: assert.deepEqual(addTogether(23, 30), 53);
|
||||
- text: <code>addTogether(5)(7)</code> should return 12.
|
||||
testString: assert.deepEqual(addTogether(5)(7), 12);
|
||||
- text: <code>addTogether("http://bit.ly/IqT6zt")</code> should return undefined.
|
||||
testString: assert.isUndefined(addTogether("http://bit.ly/IqT6zt"));
|
||||
- text: <code>addTogether(2, "3")</code> should return undefined.
|
||||
|
Reference in New Issue
Block a user