symmetricDifference
should be a function.
testString: assert(typeof symmetricDifference == 'function', 'symmetricDifference
should be a function.');
- text: symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return a array.
testString: assert(Array.isArray(symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])), 'symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return a array.');
- text: symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return ["Jim", "Serena"]
.
testString: assert.deepEqual(symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"]), ["Jim", "Serena"], 'symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return ["Jim", "Serena"]
.');
- text: symmetricDifference([1, 2, 3], [3, 4])
should return [1, 2, 4]
.
testString: assert.deepEqual(symmetricDifference([1, 2, 3], [3, 4]), [1, 2, 4], 'symmetricDifference([1, 2, 3], [3, 4])
should return [1, 2, 4]
.');
- text: symmetricDifference([1, 2, 3, 4, 5], [3, 4, 8, 7])
should return [1, 2, 5, 7, 8]
.
testString: assert.deepEqual(symmetricDifference([1, 2, 3, 4, 5], [3, 4, 8, 7]), [1, 2, 5, 7, 8], 'symmetricDifference([1, 2, 3, 4, 5], [3, 4, 8, 7])
should return [1, 2, 5, 7, 8]
.');
- text: symmetricDifference([1, 2, 3, 4, 5, 6, 7, 8], [1, 3, 5, 6, 7, 8, 9])
should return [2, 4, 9]
.
testString: assert.deepEqual(symmetricDifference([1, 2, 3, 4, 5, 6, 7, 8], [1, 3, 5, 6, 7, 8, 9]), [2, 4, 9], 'symmetricDifference([1, 2, 3, 4, 5, 6, 7, 8], [1, 3, 5, 6, 7, 8, 9])
should return [2, 4, 9]
.');
- text: symmetricDifference([1, 2, 4, 7, 9], [2, 3, 7, 8, 9])
should return [1, 3, 4, 8]
.
testString: assert.deepEqual(symmetricDifference([1, 2, 4, 7, 9], [2, 3, 7, 8, 9]), [1, 3, 4, 8], 'symmetricDifference([1, 2, 4, 7, 9], [2, 3, 7, 8, 9])
should return [1, 3, 4, 8]
.');
```