@@ -0,0 +1,2279 @@
+import unittest%0Afrom queue import Queue%0A%0A%0Aclass TestStringMethods(unittest.TestCase):%0A%0A    def test_enqueue_to_empty_queue(self):%0A        queue = Queue()%0A        self.assertEqual(queue.size, 0, %22Queue should be empty%22)%0A        queue.enqueue(1)%0A        self.assertEqual(queue.size, 1, %22Queue should contain one element%22)%0A%0A    def test_enqueue_non_empty_queue(self):%0A        queue = Queue()%0A        queue.enqueue(1)%0A        queue.enqueue(2)%0A        queue.enqueue(3)%0A        queue.enqueue(4)%0A        queue.enqueue(5)%0A        self.assertEqual(queue.size, 5, %22Queue should contain one element%22)%0A%0A    def test_dequeue_empty_queue(self):%0A        queue = Queue()%0A        self.assertEqual(queue.size, 0, %22Queue should be empty%22)%0A        element = queue.dequeue()%0A        self.assertIsNone(element)%0A        self.assertEqual(queue.size, 0, %22Queue should be empty%22)%0A%0A        queue.dequeue()%0A        queue.dequeue()%0A        queue.dequeue()%0A        self.assertEqual(queue.size, 0, %22Queue should be empty%22)%0A%0A    def test_dequeue_non_empty_queue(self):%0A        queue = Queue()%0A        queue.enqueue(1)%0A        queue.enqueue(2)%0A        queue.enqueue(3)%0A        queue.enqueue(4)%0A        queue.enqueue(5)%0A        self.assertEqual(queue.size, 5, %22Queue should contain one element%22)%0A%0A        # Test FIFO (first in first out)%0A        one = queue.dequeue()%0A        self.assertEqual(one, 1, %22Should be 1%22)%0A        self.assertEqual(queue.size, 5 - 1, %22Queue size should decrease%22)%0A%0A        two = queue.dequeue()%0A        self.assertEqual(two, 2, %22Should be 2%22)%0A        self.assertEqual(queue.size, 5 - 2, %22Queue size should decrease%22)%0A%0A        three = queue.dequeue()%0A        self.assertEqual(three, 3, %22Should be 3%22)%0A        self.assertEqual(queue.size, 5 - 3, %22Queue size should decrease%22)%0A%0A        four = queue.dequeue()%0A        self.assertEqual(four, 4, %22Should be 4%22)%0A        self.assertEqual(queue.size, 5 - 4, %22Queue size should decrease%22)%0A%0A        five = queue.dequeue()%0A        self.assertEqual(five, 5, %22Should be 5%22)%0A        self.assertEqual(queue.size, 5 - 5, %22Queue size should decrease%22)%0A%0A        none = queue.dequeue()%0A        self.assertIsNone(none, %22Queue should be empty%22)%0A        self.assertEqual(queue.size, 0, %22Queue should be empty%22)%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Add tests for queue implementation