arrToObj
should be a function.
testString: assert(typeof arrToObj === 'function');
- text: 'arrToObj([1, 2, 3, 4, 5], ["a", "b", "c", "d", "e"])
should return { 1: "a", 2: "b", 3: "c", 4: "d", 5: "e" }
'
testString: assert.deepEqual(arrToObj(...testCases[0]), res[0]);
- text: 'arrToObj([1, 2, 3, 4, 5], ["a", "b", "c", "d"])
should return { 1: "a", 2: "b", 3: "c", 4: "d", 5: undefined }
'
testString: assert.deepEqual(arrToObj(...testCases[1]), res[1]);
- text: 'arrToObj([1, 2, 3], ["a", "b", "c", "d", "e"])
should return { 1: "a", 2: "b", 3: "c" }
'
testString: assert.deepEqual(arrToObj(...testCases[2]), res[2]);
- text: 'arrToObj(["a", "b", "c", "d", "e"], [1, 2, 3, 4, 5])
should return { "a": 1, "b": 2, "c": 3 , "d": 4, "e": 5 }
'
testString: assert.deepEqual(arrToObj(...testCases[3]), res[3]);
- text: 'arrToObj(["a", "b", "c", "d", "e"], [1, 2, 3, 4])
should return { "a": 1, "b": 2, "c": 3 , "d": 4, "e": undefined }
'
testString: assert.deepEqual(arrToObj(...testCases[4]), res[4]);
- text: 'arrToObj(["a", "b", "c"], [1, 2, 3, 4, 5])
should return { "a": 1, "b": 2, "c": 3 }
'
testString: assert.deepEqual(arrToObj(...testCases[5]), res[5]);
```