예제 #1
0
 def test_head_non_empty(self):
     queue = ArrayQueue()
     queue.insert(1)
     self.assertEqual(queue.head(), 1)
예제 #2
0
 def test_head_empty(self):
     queue = ArrayQueue()
     with self.assertRaises(ValueError):
         queue.head()