From 68df9f3a3fd6d50e2fe92f55bb9a9c96990de064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 12:52:43 +0100 Subject: [PATCH] add 2 tests for symmetricDifference and tail --- test/symmetricDifference/symmetricDifference.test.js | 1 + test/tail/tail.test.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/symmetricDifference/symmetricDifference.test.js b/test/symmetricDifference/symmetricDifference.test.js index f890ac9e5..2c8d7544b 100644 --- a/test/symmetricDifference/symmetricDifference.test.js +++ b/test/symmetricDifference/symmetricDifference.test.js @@ -5,6 +5,7 @@ test('Testing symmetricDifference', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof symmetricDifference === 'function', 'symmetricDifference is a Function'); + t.deepEqual(symmetricDifference([1, 2, 3], [1, 2, 4]), [3, 4], "Returns the symmetric difference between two arrays."); //t.deepEqual(symmetricDifference(args..), 'Expected'); //t.equal(symmetricDifference(args..), 'Expected'); //t.false(symmetricDifference(args..), 'Expected'); diff --git a/test/tail/tail.test.js b/test/tail/tail.test.js index 600ee2a7e..499a1bc3a 100644 --- a/test/tail/tail.test.js +++ b/test/tail/tail.test.js @@ -5,6 +5,8 @@ test('Testing tail', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof tail === 'function', 'tail is a Function'); + t.deepEqual(tail([1, 2, 3]), [2, 3], "Returns tail"); + t.deepEqual(tail([1]), [1], "Returns tail"); //t.deepEqual(tail(args..), 'Expected'); //t.equal(tail(args..), 'Expected'); //t.false(tail(args..), 'Expected');