You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You test command l.update({'a':1, 'b':2})
But in Python, the order that 'a' and 'b' is visited is random.
So it might update key 'b' first, and then b become the last node in LRU,
at last, self.assertEqual(('b', 2), l.peek_first_item()) might fail.
The text was updated successfully, but these errors were encountered:
You test command l.update({'a':1, 'b':2})
But in Python, the order that 'a' and 'b' is visited is random.
So it might update key 'b' first, and then b become the last node in LRU,
at last, self.assertEqual(('b', 2), l.peek_first_item()) might fail.
The text was updated successfully, but these errors were encountered: