Exemple #1
0
 def test_eval_go_first(self):
     llgf = CDLL()
     for i in range(10):
         self.insert(llgf, "00:00:0" + str(i))
     for i in range(5):
         llgf.go_next()
     llgf.go_first()
     try:
         self.assertEqual(llgf.current.time, "00:00:00")
     except AssertionError:
         assert False, "Head Not At Lowest Element"
Exemple #2
0
 def test_eval_go_next(self):
     llgn = CDLL()
     for i in range(2):
         self.insert(llgn, "00:00:0" + str(i))
     llgn.current = llgn.head
     try:
         self.assertEqual(llgn.current.time, "00:00:00")
     except AssertionError:
         assert False, "Head Not Equal"
     llgn.go_next()
     try:
         self.assertEqual(llgn.current.time, "00:00:01")
     except AssertionError:
         assert False, "Next Element Not Equal"