From da9fb5942126ecd4a897d62b0bda23274a7a3959 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 26 Aug 2023 22:43:44 +0200 Subject: [PATCH] test: improve deque coverage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/deque.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/deque.test.js b/tests/deque.test.js index 386b8ae1..290eadbf 100644 --- a/tests/deque.test.js +++ b/tests/deque.test.js @@ -101,7 +101,9 @@ describe('Deque test suite', () => { deque.push(1) deque.push(2) deque.push(3) + expect(deque.size).toBe(3) expect(deque.peekFirst()).toBe(1) + expect(deque.size).toBe(3) }) it('Verify peekLast() behavior', () => { @@ -109,7 +111,9 @@ describe('Deque test suite', () => { deque.push(1) deque.push(2) deque.push(3) + expect(deque.size).toBe(3) expect(deque.peekLast()).toBe(3) + expect(deque.size).toBe(3) }) it('Verify clear() behavior', () => { -- 2.34.1