def test_cache_4 (self) : c = Cache(10) c.write(1, 100) self.assertEqual(c.read(1), 100)
def test_cache_2 (self) : c = Cache(10) c.write(2, 10) self.assertEqual(c.read(2), 10)
def test_cache_4 (self) : c = Cache(10) c.write(1, 100) self.assertEqual(c.read(1), 100)
def test_cache_2 (self) : c = Cache(10) c.write(2, 10) self.assertEqual(c.read(2), 10)