From: Jérôme Benoit Date: Sat, 26 Aug 2023 20:43:44 +0000 (+0200) Subject: test: improve deque coverage X-Git-Tag: v2.6.36~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=da9fb5942126ecd4a897d62b0bda23274a7a3959;p=poolifier.git test: improve deque coverage Signed-off-by: Jérôme Benoit --- 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', () => {