deepcopy
should be a function.
testString: assert(typeof deepcopy === 'function');
- text: 'deepcopy({test: "test"})
should return an object.'
testString: 'assert(typeof deepcopy(obj1) === ''object'');'
- text: deepcopy
should not return the same object that was provided.
testString: assert(deepcopy(obj2) != obj2);
- text: When passed an object containing an array, deepcopy
should return a deep copy of the object.
testString: assert.deepEqual(deepcopy(obj2), obj2);
- text: When passed an object containing another object, deepcopy
should return a deep copy of the object.
testString: assert.deepEqual(deepcopy(obj3), obj3);
```