fix(curriculum): Remove unnecessary assert message argument from English Coding Interview Prep challenges - 02 (#36412)
* fix: removed assert msg argument * fix: removed msgs surrounded by 2 single quotes * fix: removed missing 2 assert msg arguments * fix: remove msg surrounded by two single quotes * fix: removed unnecessary assert msg args * fix; remove msgs surrounded by double quotes * fix: removed unnecessary assert msg args * fix: remove unnecessary assert msg args * fix: removed unnecessary assert msg arg * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg arg * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg args * fix: removed unnecessary assert msg arg * fix: removed unnecessary assert msg args * fix: Restore expected values to assertions * fix: remove assertion message Co-authored-by: Vivek Agrawal <vivekmittalagrawal@gmail.com>
This commit is contained in:
committed by
Oliver Eyton-Williams
parent
603c842c97
commit
04f18e43f6
@ -22,17 +22,17 @@ Write a function that takes any numbers of vectors (arrays) as input and compute
|
||||
```yml
|
||||
tests:
|
||||
- text: dotProduct must be a function
|
||||
testString: assert.equal(typeof dotProduct, 'function', 'dotProduct must be a function');
|
||||
testString: assert.equal(typeof dotProduct, 'function');
|
||||
- text: dotProduct() must return null
|
||||
testString: assert.equal(dotProduct(), null, 'dotProduct() must return null');
|
||||
testString: assert.equal(dotProduct(), null);
|
||||
- text: dotProduct([[1], [1]]) must return 1.
|
||||
testString: assert.equal(dotProduct([1], [1]), 1, 'dotProduct([[1], [1]]) must return 1.');
|
||||
testString: assert.equal(dotProduct([1], [1]), 1);
|
||||
- text: dotProduct([[1], [1, 2]]) must return null.
|
||||
testString: assert.equal(dotProduct([1], [1, 2]), null, 'dotProduct([[1], [1, 2]]) must return null.');
|
||||
testString: assert.equal(dotProduct([1], [1, 2]), null);
|
||||
- text: dotProduct([1, 3, -5], [4, -2, -1]) must return 3.
|
||||
testString: assert.equal(dotProduct([1, 3, -5], [4, -2, -1]), 3, 'dotProduct([1, 3, -5], [4, -2, -1]) must return 3.');
|
||||
testString: assert.equal(dotProduct([1, 3, -5], [4, -2, -1]), 3);
|
||||
- text: <code>dotProduct(...nVectors)</code> should return 156000
|
||||
testString: assert.equal(dotProduct([ 0, 1, 2, 3, 4 ], [ 0, 2, 4, 6, 8 ], [ 0, 3, 6, 9, 12 ], [ 0, 4, 8, 12, 16 ], [ 0, 5, 10, 15, 20 ]), 156000, '<code>dotProduct(...nVectors)</code> should return 156000');
|
||||
testString: assert.equal(dotProduct([ 0, 1, 2, 3, 4 ], [ 0, 2, 4, 6, 8 ], [ 0, 3, 6, 9, 12 ], [ 0, 4, 8, 12, 16 ], [ 0, 5, 10, 15, 20 ]), 156000);
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user