예제 #1
0
파일: math_test.py 프로젝트: weiqiao/drake
 def test_wrap_to(self):
     self.assertEqual(wrap_to(1.5, 0., 1.), .5)
예제 #2
0
 def test_wrap_to(self):
     self.assertEqual(wrap_to(1.5, 0., 1.), .5)
예제 #3
0
 def test_wrap_to(self, T):
     value = wrap_to(T(1.5), T(0.), T(1.))
     if T != Expression:
         self.assertEqual(value, T(.5))