--- title: Identity matrix id: 5a23c84252665b21eecc7eb1 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof idMatrix=="function","idMatrix should be a function.");' - text: '' testString: 'assert(Array.isArray(idMatrix(1)),"idMatrix(1) should return an array.");' - text: '' testString: 'assert.deepEqual(idMatrix(1),results[0],"idMatrix(1) should return "+JSON.stringify(results[0])+".");' - text: '' testString: 'assert.deepEqual(idMatrix(2),results[1],"idMatrix(2) should return "+JSON.stringify(results[1])+".");' - text: '' testString: 'assert.deepEqual(idMatrix(3),results[2],"idMatrix(3) should return "+JSON.stringify(results[2])+".");' - text: '' testString: 'assert.deepEqual(idMatrix(4),results[3],"idMatrix(4) should return "+JSON.stringify(results[3])+".");' ```
## Challenge Seed
```js function idMatrix (n) { // Good luck! } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```