From 69c96496ec7b08786bbc7cf29911ec3d1d734c85 Mon Sep 17 00:00:00 2001 From: SaintPeter Date: Fri, 31 Jul 2015 17:58:14 -0700 Subject: [PATCH] Added additional tests to Sorted Union Bonfire --- challenges/basic-bonfires.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/challenges/basic-bonfires.json b/challenges/basic-bonfires.json index b2a49c8ce3..36b9c4b1c0 100644 --- a/challenges/basic-bonfires.json +++ b/challenges/basic-bonfires.json @@ -1074,9 +1074,12 @@ ], "tests": [ "assert.deepEqual(unite([1, 3, 2], [5, 2, 1, 4], [2, 1]), [1, 3, 2, 5, 4], 'should return the union of the given arrays');", - "assert.deepEqual(unite([1, 3, 2], [1, [5]], [2, [4]]), [1, 3, 2, [5], [4]], 'should not flatten nested arrays');" + "assert.deepEqual(unite([1, 3, 2], [1, [5]], [2, [4]]), [1, 3, 2, [5], [4]], 'should not flatten nested arrays');", + "assert.deepEqual(unite([1, 2, 3], [5, 2, 1]), [1, 2, 3, 5], 'should correctly handle exactly two arguments');", + "assert.deepEqual(unite([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8]), [ 1, 2, 3, 5, 4, 6, 7, 8 ], 'should correctly handle higher numbers of arguments');" ], "MDNlinks": [ + "Arguments object", "Array.reduce()" ], "challengeType": 5,