mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Ensure _.xor returns an empty array when comparing the same array. [closes #2776]
This commit is contained in:
@@ -25279,6 +25279,15 @@
|
||||
assert.deepEqual(actual, []);
|
||||
});
|
||||
|
||||
QUnit.test('`_.' + methodName + '` should return an empty array when comparing the same array', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var array = [1],
|
||||
actual = func(array, array, array);
|
||||
|
||||
assert.deepEqual(actual, []);
|
||||
});
|
||||
|
||||
QUnit.test('`_.' + methodName + '` should return an array of unique values', function(assert) {
|
||||
assert.expect(2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user