diff tests/test-lrucachedict.py.out @ 27576:6cd3044985c2

lrucachedict: add copy method This diff implements the standard dict copy() method for lrucachedicts, which will be used in the pushrebase extension to make a copy of the manifestcache.
author Eric Sumner <ericsumner@fb.com>
date Wed, 30 Dec 2015 13:10:53 -0800
parents 45d996a566d7
children
line wrap: on
line diff
--- a/tests/test-lrucachedict.py.out	Thu Dec 31 09:55:56 2015 +0100
+++ b/tests/test-lrucachedict.py.out	Wed Dec 30 13:10:53 2015 -0800
@@ -33,3 +33,30 @@
 d['a']: 1
 'b' in d: True
 d['b']: 2
+
+All of these should be present:
+'a' in dc: True
+dc['a']: va3
+'b' in dc: True
+dc['b']: vb3
+'c' in dc: True
+dc['c']: vc3
+'d' in dc: True
+dc['d']: vd3
+
+All of these except 'a' should be present:
+'a' in dc: False
+'b' in dc: True
+dc['b']: vb3
+'c' in dc: True
+dc['c']: vc3
+'d' in dc: True
+dc['d']: vd3
+'e' in dc: True
+dc['e']: ve3
+
+These should be in reverse alphabetical order and read 'v?3':
+d['d']: vd3
+d['c']: vc3
+d['b']: vb3
+d['a']: va3