From abdf541b8b8c3cc11e616343b0a67776ebe3e226 Mon Sep 17 00:00:00 2001 From: edumoreira1506 Date: Tue, 10 Sep 2019 13:58:08 -0300 Subject: [PATCH] Tests for GnomeSort algorithm --- .../sorting/gnome-sort/__test__/GnomeSort.test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/algorithms/sorting/gnome-sort/__test__/GnomeSort.test.js b/src/algorithms/sorting/gnome-sort/__test__/GnomeSort.test.js index e69de29b..28fa9fc1 100644 --- a/src/algorithms/sorting/gnome-sort/__test__/GnomeSort.test.js +++ b/src/algorithms/sorting/gnome-sort/__test__/GnomeSort.test.js @@ -0,0 +1,14 @@ +import GnomeSort from '../GnomeSort'; +import { + SortTester, +} from '../../SortTester'; + +describe('GnomeSort', () => { + it('should sort array', () => { + SortTester.testSort(GnomeSort); + }); + + it('should sort negative numbers', () => { + SortTester.testNegativeNumbersSort(GnomeSort); + }); +});