From 36f2d11710d4f0f8b1146a9aa7d58434a3fd0cb0 Mon Sep 17 00:00:00 2001 From: Awwal M <67423428+awwalm@users.noreply.github.com> Date: Sun, 28 May 2023 13:45:16 +0100 Subject: [PATCH] Added tests for ArrayQueue --- Goodrich/Chapter6/test.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Goodrich/Chapter6/test.py diff --git a/Goodrich/Chapter6/test.py b/Goodrich/Chapter6/test.py new file mode 100644 index 0000000..43cc3d7 --- /dev/null +++ b/Goodrich/Chapter6/test.py @@ -0,0 +1,8 @@ +from array_queue import ArrayQueue + +aq = ArrayQueue() +aq.enqueue(5) +aq.enqueue(3) +print(len(aq)) +aq.dequeue() +print(aq)