From 479200ffe080f9c6062ec4dc89db6b78f763db80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 27 Jul 2023 13:56:14 +0200 Subject: [PATCH] test: improve isArraySorted() test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- test/utils/Utils.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils/Utils.test.ts b/test/utils/Utils.test.ts index b75197c2..96fd18b4 100644 --- a/test/utils/Utils.test.ts +++ b/test/utils/Utils.test.ts @@ -413,5 +413,6 @@ describe('Utils test suite', () => { ).toBe(true); expect(isArraySorted([1, 2, 3, 4, 5], (a, b) => a - b)).toBe(true); expect(isArraySorted([1, 2, 3, 5, 4], (a, b) => a - b)).toBe(false); + expect(isArraySorted([2, 1, 3, 4, 5], (a, b) => a - b)).toBe(false); }); }); -- 2.34.1