Ensure _.xor() returns new unique array.

This commit is contained in:
Ryan Van Etten
2013-12-06 20:59:25 -05:00
committed by John-David Dalton
parent c61a0cdd22
commit 64fc924357
2 changed files with 6 additions and 6 deletions

View File

@@ -8108,9 +8108,10 @@
deepEqual(actual, [1, 4, 5]);
});
test('should return an array of unique values', 1, function() {
test('should return an array of unique values', 2, function() {
var actual = _.xor([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]);
deepEqual(actual, [1, 4, 5]);
deepEqual(_.xor([1, 1]), [1]);
});
test('should return a wrapped value when chaining', 2, function() {