Esempio n. 1
0
 def main(*argv):
     "DequeAsArray test program."
     print DequeAsArray.main.__doc__
     deque1 = DequeAsArray(5)
     Queue.test(deque1)
     Deque.test(deque1)
     return 0
Esempio n. 2
0
 def main(*argv):
     "DequeAsLinkedList test program."
     print DequeAsLinkedList.main.__doc__
     deque2 = DequeAsLinkedList()
     Queue.test(deque2)
     Deque.test(deque2)
     return 0
Esempio n. 3
0
 def main(*argv):
     "DequeAsLinkedList test program."
     print DequeAsLinkedList.main.__doc__
     deque2 = DequeAsLinkedList()
     Queue.test(deque2)
     Deque.test(deque2)
     return 0
Esempio n. 4
0
 def main(*argv):
     "DequeAsArray test program."
     print((DequeAsArray.main.__doc__))
     deque1 = DequeAsArray(5)
     Queue.test(deque1)
     Deque.test(deque1)
     return 0
Esempio n. 5
0
 def main(*argv):
     "QueueAsArray test program."
     print((QueueAsArray.main.__doc__))
     queue1 = QueueAsArray(5)
     Queue.test(queue1)
     return 0
Esempio n. 6
0
 def main(*argv):
     "QueueAsLinkedList test program."
     print QueueAsLinkedList.main.__doc__
     queue2 = QueueAsLinkedList()
     Queue.test(queue2)
     return 0
Esempio n. 7
0
 def main(*argv):
     "QueueAsLinkedList test program."
     print QueueAsLinkedList.main.__doc__
     queue2 = QueueAsLinkedList()
     Queue.test(queue2)
     return 0
Esempio n. 8
0
 def main(*argv):
     "QueueAsArray test program."
     print QueueAsArray.main.__doc__
     queue1 = QueueAsArray(5)
     Queue.test(queue1)
     return 0