def test_contains(self, PointSet): ps = PointSet fp = FastPair() assert ps[0] not in fp fp.build(ps) assert ps[0] in fp
def test_len(self): ps = PointSet() fp = FastPair() assert len(fp) == 0 fp.build(ps) assert len(fp) == len(ps)
def test_len(self, PointSet): ps = PointSet fp = FastPair() assert len(fp) == 0 fp.build(ps) assert len(fp) == len(ps)
def test_contains(self): ps = PointSet() fp = FastPair() assert ps[0] not in fp fp.build(ps) assert ps[0] in fp