def test_move_sequential(self):
     pattern = "389125467"
     expecteds = [
         "289154673", "546789132", "891346725", "467913258", "136792584",
         "936725841", "258367419", "674158392", "574183926", "837419265"
     ]
     ill = indexedlinkedlist.IndexedList(pattern)
     for e in expecteds:
         d23_cupgame.move(ill)
         self.assertEqual([int(c) for c in e], [val for val in ill])
 def test_move_10(self):
     pattern = "574183926"
     l = indexedlinkedlist.IndexedList(pattern)
     d23_cupgame.move(l)
     self.assertEqual([int(c) for c in "837419265"], [val for val in l])
 def test_move_8(self):
     pattern = "258367419"
     l = indexedlinkedlist.IndexedList(pattern)
     d23_cupgame.move(l)
     self.assertEqual([int(c) for c in "674158392"], [val for val in l])
 def test_move_6(self):
     pattern = "136792584"
     l = indexedlinkedlist.IndexedList(pattern)
     d23_cupgame.move(l)
     self.assertEqual([int(c) for c in "936725841"], [val for val in l])
 def test_move_4(self):
     pattern = "891346725"
     l = indexedlinkedlist.IndexedList(pattern)
     d23_cupgame.move(l)
     self.assertEqual([int(c) for c in "467913258"], [val for val in l])
 def test_move_2(self):
     pattern = "289154673"
     l = indexedlinkedlist.IndexedList(pattern)
     d23_cupgame.move(l)
     self.assertEqual([int(c) for c in "546789132"], [val for val in l])