tests/test-lrucachedict.py
changeset 27371 45d996a566d7
parent 19710 887ffa22fd0d
child 27576 6cd3044985c2
equal deleted inserted replaced
27368:409a20314c64 27371:45d996a566d7
    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()