Пример #1
0
 def test_contains(self, PointSet):
     ps = PointSet
     fp = FastPair()
     assert ps[0] not in fp
     fp.build(ps)
     assert ps[0] in fp
Пример #2
0
 def test_len(self):
     ps = PointSet()
     fp = FastPair()
     assert len(fp) == 0
     fp.build(ps)
     assert len(fp) == len(ps)
Пример #3
0
 def test_len(self, PointSet):
     ps = PointSet
     fp = FastPair()
     assert len(fp) == 0
     fp.build(ps)
     assert len(fp) == len(ps)
Пример #4
0
 def test_contains(self):
     ps = PointSet()
     fp = FastPair()
     assert ps[0] not in fp
     fp.build(ps)
     assert ps[0] in fp