MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / test_eq

Function test_eq

tests/test_coverage_sortedset.py:76–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 assert list(temp) == list(values)
75
76def test_eq():
77 alpha = SortedSet(range(100))
78 alpha._reset(7)
79 beta = SortedSet(range(100))
80 beta._reset(17)
81 assert alpha == beta
82 assert alpha == beta._set
83 beta.add(101)
84 assert not (alpha == beta)
85
86def test_ne():
87 alpha = SortedSet(range(100))

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected