From 9bed47a763bf230e0b7d3d0390a92f7208305c34 Mon Sep 17 00:00:00 2001 From: ahstro Date: Sun, 9 Aug 2015 02:08:42 +0200 Subject: [PATCH] Disregard order in 'Symmetric Difference' #1402 --- seed/challenges/expert-bonfires.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed/challenges/expert-bonfires.json b/seed/challenges/expert-bonfires.json index 50bbe89de2..bb0294b27f 100644 --- a/seed/challenges/expert-bonfires.json +++ b/seed/challenges/expert-bonfires.json @@ -81,9 +81,9 @@ "sym([1, 2, 3], [5, 2, 1, 4]);" ], "tests": [ - "expect(sym([1, 2, 3], [5, 2, 1, 4])).to.equal([3, 5, 4]);", - "assert.deepEqual(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]), [1, 4, 5], 'should return the symmetric difference of the given arrays');", - "assert.deepEqual(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]), [1, 4, 5], 'should return an array of unique values');", + "assert.deepEqual(sym([1, 2, 3], [5, 2, 1, 4]).sort(), [3, 4, 5], 'should return the symmetric difference of the given arrays');", + "assert.deepEqual(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]).sort(), [1, 4, 5], 'should return the symmetric difference of the given arrays');", + "assert.deepEqual(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]).sort(), [1, 4, 5], 'should return an array of unique values');", "assert.deepEqual(sym([1, 1]), [1], 'should return an array of unique values');" ], "MDNlinks": [