#=========================================================================
-# test Bounding Box
+# test Bounding Box
#=========================================================================
def test_Bounding_Box():
print(" Basic Properties:")
print(" Wires length: ", Props[0])
print(" Surface area: ", Props[1])
- print(" Volume : ", Props[2])
-
+ print(" Volume : ", Props[2])
+
aReflength = 200
aReslength = Props[0]
assert (math.fabs(aReslength - aReflength) < myDelta), "The surface is wrong: expected = {0}, real = {1}".format(aReflength, aReslength)
aResVolume = Props[2]
assert (math.fabs(aResVolume - aRefVolume) < myDelta), "The volume is wrong: expected = {0}, real = {1}".format(aRefVolume, aResVolume)
-
+
if __name__ == '__main__':
test_Bounding_Box()
-
+
#=========================================================================
# End of test
#=========================================================================