Пример #1
0
 def main(*argv):
     "DequeAsArray test program."
     print DequeAsArray.main.__doc__
     deque1 = DequeAsArray(5)
     Queue.test(deque1)
     Deque.test(deque1)
     return 0
Пример #2
0
 def main(*argv):
     "DequeAsLinkedList test program."
     print DequeAsLinkedList.main.__doc__
     deque2 = DequeAsLinkedList()
     Queue.test(deque2)
     Deque.test(deque2)
     return 0
Пример #3
0
 def main(*argv):
     "DequeAsLinkedList test program."
     print DequeAsLinkedList.main.__doc__
     deque2 = DequeAsLinkedList()
     Queue.test(deque2)
     Deque.test(deque2)
     return 0
Пример #4
0
 def main(*argv):
     "DequeAsArray test program."
     print((DequeAsArray.main.__doc__))
     deque1 = DequeAsArray(5)
     Queue.test(deque1)
     Deque.test(deque1)
     return 0