Mercurial > hg
comparison tests/test-lrucachedict.py @ 19710:887ffa22fd0d
lrucachedict: implement clear()
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 06 Sep 2013 13:16:21 -0700 |
parents | 2251b3184e6e |
children | 45d996a566d7 |
comparison
equal
deleted
inserted
replaced
19709:600ea1a6884c | 19710:887ffa22fd0d |
---|---|
29 | 29 |
30 # 'e' should be dropped now | 30 # 'e' should be dropped now |
31 d['f'] = 'vf' | 31 d['f'] = 'vf' |
32 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) | 32 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) |
33 | 33 |
34 d.clear() | |
35 printifpresent(d, ['b', 'c', 'd', 'e', 'f']) | |
36 | |
34 if __name__ == '__main__': | 37 if __name__ == '__main__': |
35 test_lrucachedict() | 38 test_lrucachedict() |