diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5])
should return an array.'
testString: 'assert(typeof diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]) === "object", ''diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5])
should return an array.'');'
- text: '["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return ["pink wool"]
.'
testString: 'assert.sameMembers(diffArray(["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]), ["pink wool"], ''["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return ["pink wool"]
.'');'
- text: '["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return an array with one item.'
testString: 'assert(diffArray(["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]).length === 1, ''["diorite", "andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return an array with one item.'');'
- text: '["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return ["diorite", "pink wool"]
.'
testString: 'assert.sameMembers(diffArray(["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]), ["diorite", "pink wool"], ''["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return ["diorite", "pink wool"]
.'');'
- text: '["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return an array with two items.'
testString: 'assert(diffArray(["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]).length === 2, ''["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]
should return an array with two items.'');'
- text: '["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]
should return []
.'
testString: 'assert.sameMembers(diffArray(["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]), [], ''["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]
should return []
.'');'
- text: '["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]
should return an empty array.'
testString: 'assert(diffArray(["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]).length === 0, ''["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]
should return an empty array.'');'
- text: '[1, 2, 3, 5], [1, 2, 3, 4, 5]
should return [4]
.'
testString: 'assert.sameMembers(diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]), [4], ''[1, 2, 3, 5], [1, 2, 3, 4, 5]
should return [4]
.'');'
- text: '[1, 2, 3, 5], [1, 2, 3, 4, 5]
should return an array with one item.'
testString: 'assert(diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]).length === 1, ''[1, 2, 3, 5], [1, 2, 3, 4, 5]
should return an array with one item.'');'
- text: '[1, "calf", 3, "piglet"], [1, "calf", 3, 4]
should return ["piglet", 4]
.'
testString: 'assert.sameMembers(diffArray([1, "calf", 3, "piglet"], [1, "calf", 3, 4]), ["piglet", 4], ''[1, "calf", 3, "piglet"], [1, "calf", 3, 4]
should return ["piglet", 4]
.'');'
- text: '[1, "calf", 3, "piglet"], [1, "calf", 3, 4]
should return an array with two items.'
testString: 'assert(diffArray([1, "calf", 3, "piglet"], [1, "calf", 3, 4]).length === 2, ''[1, "calf", 3, "piglet"], [1, "calf", 3, 4]
should return an array with two items.'');'
- text: '[], ["snuffleupagus", "cookie monster", "elmo"]
should return ["snuffleupagus", "cookie monster", "elmo"]
.'
testString: 'assert.sameMembers(diffArray([], ["snuffleupagus", "cookie monster", "elmo"]), ["snuffleupagus", "cookie monster", "elmo"], ''[], ["snuffleupagus", "cookie monster", "elmo"]
should return ["snuffleupagus", "cookie monster", "elmo"]
.'');'
- text: '[], ["snuffleupagus", "cookie monster", "elmo"]
should return an array with three items.'
testString: 'assert(diffArray([], ["snuffleupagus", "cookie monster", "elmo"]).length === 3, ''[], ["snuffleupagus", "cookie monster", "elmo"]
should return an array with three items.'');'
- text: '[1, "calf", 3, "piglet"], [7, "filly"]
should return [1, "calf", 3, "piglet", 7, "filly"]
.'
testString: 'assert.sameMembers(diffArray([1, "calf", 3, "piglet"], [7, "filly"]), [1, "calf", 3, "piglet", 7, "filly"], ''[1, "calf", 3, "piglet"], [7, "filly"]
should return [1, "calf", 3, "piglet", 7, "filly"]
.'');'
- text: '[1, "calf", 3, "piglet"], [7, "filly"]
should return an array with six items.'
testString: 'assert(diffArray([1, "calf", 3, "piglet"], [7, "filly"]).length === 6, ''[1, "calf", 3, "piglet"], [7, "filly"]
should return an array with six items.'');'
```