fix(curriculum): add additional test case to fix hard code issue (#43086)
* fix: added additional matrix1 test case for different arguments to fix hard code issue #43050
* fix: reduced additional test case to only 1 with zeroArray(4,3) and added to all languages
* Revert "fix: reduced additional test case to only 1 with zeroArray(4,3) and added to all languages"
This reverts commit bbbb1c7cbc
.
* fix: only simplify and reduce to 1 test case using zeroArray(4,3), reverted internationalization
* fix: removed unused matrix1 from seed and solution
* update: for better wording of the added test case suggested
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
This commit is contained in:
@ -38,6 +38,12 @@ assert(
|
||||
);
|
||||
```
|
||||
|
||||
`zeroArray(4,3)` should return an array holding 4 rows of 3 columns of zeroes each.
|
||||
|
||||
```js
|
||||
assert(JSON.stringify(zeroArray(4,3)) == '[[0,0,0],[0,0,0],[0,0,0],[0,0,0]]');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
@ -62,6 +68,7 @@ function zeroArray(m, n) {
|
||||
|
||||
let matrix = zeroArray(3, 2);
|
||||
console.log(matrix);
|
||||
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
@ -86,4 +93,5 @@ function zeroArray(m, n) {
|
||||
|
||||
let matrix = zeroArray(3, 2);
|
||||
console.log(matrix);
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user