コード例 #1
0
 def test_within_tolerance5(self):
     from shapeanalysis.process_data import within_tolerance
     actual = within_tolerance(0.5 - 0, 0.49, float_tol=0)
     self.assertFalse(actual)
コード例 #2
0
 def test_within_tolerance_within_negative(self):
     from shapeanalysis.process_data import within_tolerance
     with self.assertRaises(ValueError):
         within_tolerance(0.1, -0.1)
コード例 #3
0
 def test_within_tolerance3(self):
     from shapeanalysis.process_data import within_tolerance
     actual = within_tolerance(90 - 90.001, 0.0001)
     self.assertFalse(actual)