equal
deleted
inserted
replaced
32 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) |
32 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) |
33 |
33 |
34 d.clear() |
34 d.clear() |
35 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) |
35 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) |
36 |
36 |
|
37 # Now test dicts that aren't full. |
|
38 d = util.lrucachedict(4) |
|
39 d['a'] = 1 |
|
40 d['b'] = 2 |
|
41 d['a'] |
|
42 d['b'] |
|
43 printifpresent(d, ['a', 'b']) |
|
44 |
37 if __name__ == '__main__': |
45 if __name__ == '__main__': |
38 test_lrucachedict() |
46 test_lrucachedict() |