Skip to content
Permalink
Browse files
Added Tests
  • Loading branch information
hortonr6 committed Jul 19, 2019
1 parent 7dc21d2 commit 32e13cd580c39c17112d13086e3e722aee06b352
Showing 1 changed file with 26 additions and 0 deletions.
@@ -30,3 +30,29 @@ class Queue:
for item in self.queue:
print(item)

print("TEST: STACK\n")

testStack = Stack()
testStack.push(87)
testStack.push(43)
testStack.push(13)
testStack.push(98)
testStack.push(57)

testStack.printStack()
print("\nExpected: 57 --- Actual:", testStack.pop())
print("Expected: 98 --- Actual:", testStack.pop())
print("\n------------------------------")
print("\nTEST: QUEUE\n")

testQueue = Queue()
testQueue.push(87)
testQueue.push(43)
testQueue.push(13)
testQueue.push(98)
testQueue.push(57)

testQueue.printQueue()
print("\nExpected: 87 --- Actual:", testQueue.pop())
print("Expected: 43 --- Actual:", testQueue.pop())

0 comments on commit 32e13cd

Please sign in to comment.