示例#1
0
 def test_put_1(self):
     q = Queue()
     q.put(1)
     self.assertEqual(q.top(), 1)
示例#2
0
 def test_put_2(self):
     q = Queue()
     q.put(2)
     self.assertFalse(q.empty())
     q.put(1)
     self.assertEqual(q.top(), 2)