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