示例#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