示例#1
0
 def setUp(self):
     self.f_x = 2.1
     self.f_y = 5.6
     self.d_x = pointerutils.Double(self.f_x)
     self.d_y = pointerutils.Double(self.f_y)
     self.p_x = pointerutils.PDouble(self.d_x)
     self.p_y = pointerutils.PDouble(self.d_y)
示例#2
0
 def setUp(self):
     TestInPlaceOperators.setUp(self)
     self._d_x = pointerutils.Double(self.f_x)
     self._d_y = pointerutils.Double(self.f_y)
     self.d_x = pointerutils.PDouble(self._d_x)
     self.d_y = pointerutils.PDouble(self._d_y)
示例#3
0
 def setUp(self):
     TestNumericConversion.setUp(self)
     self._d_x = pointerutils.Double(self.f_x)
     self.d_x = pointerutils.PDouble(self._d_x)
示例#4
0
 def setUp(self):
     TestArithmetic.setUp(self)
     self._d_x = pointerutils.Double(self.f_x)
     self._d_y = pointerutils.Double(self.f_y)
     self.d_x = pointerutils.PDouble(self._d_x)
     self.d_y = pointerutils.PDouble(self._d_y)
示例#5
0
 def test_1_init_double(self):
     self.d = pointerutils.Double(2.)
示例#6
0
 def setUp(self):
     TestRhichCompare.setUp(self)
     self._small = pointerutils.Double(self.f_small)
     self._large = pointerutils.Double(self.f_large)
     self.d_small = pointerutils.PDouble(self._small)
     self.d_large = pointerutils.PDouble(self._large)