File: test_pop.py

package info (click to toggle)
python-preshed 4.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: python: 367; ansic: 160; sh: 13; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
from ..maps import PreshMap


def test_pop1():
    table = PreshMap()
    table[10] = 20
    table[30] = 25
    assert table[10] == 20
    assert table[30] == 25
    table.pop(30)
    assert table[10] == 20