add test for multiple object at min/max selection
This commit is contained in:
parent
562e44c01d
commit
6551218d55
|
@ -147,6 +147,10 @@ class TestCQSelectors(BaseTest):
|
||||||
for v in c.faces(">Z").vertices().vals():
|
for v in c.faces(">Z").vertices().vals():
|
||||||
self.assertAlmostEqual(1.0,v.Z,3)
|
self.assertAlmostEqual(1.0,v.Z,3)
|
||||||
|
|
||||||
|
# test the case of multiple objects at the same distance
|
||||||
|
el = c.edges("<Z").vals()
|
||||||
|
self.assertEqual(4, len(el))
|
||||||
|
|
||||||
def testMinDistance(self):
|
def testMinDistance(self):
|
||||||
c = CQ(makeUnitCube())
|
c = CQ(makeUnitCube())
|
||||||
|
|
||||||
|
@ -159,6 +163,10 @@ class TestCQSelectors(BaseTest):
|
||||||
for v in c.faces("<Z").vertices().vals():
|
for v in c.faces("<Z").vertices().vals():
|
||||||
self.assertAlmostEqual(0.0,v.Z,3)
|
self.assertAlmostEqual(0.0,v.Z,3)
|
||||||
|
|
||||||
|
# test the case of multiple objects at the same distance
|
||||||
|
el = c.edges("<Z").vals()
|
||||||
|
self.assertEqual(4, len(el))
|
||||||
|
|
||||||
def testNearestTo(self):
|
def testNearestTo(self):
|
||||||
c = CQ(makeUnitCube())
|
c = CQ(makeUnitCube())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user