Viewing File: /home/ubuntu/.local/lib/python3.10/site-packages/preshed/tests/test_pop.py

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
Back to Directory File Manager