Пример #1
0
 def equals_cube_t2(self):
     cube = cb.equals_cube(self.l0, self.l1, tolerance=2.0)
     self.assertTrue(cube[0, 0, 0])
     self.assertTrue(cube[0, 0, 1])
     self.assertTrue(cube[0, 0, 2])
     self.assertEqual(cube.sum(), 3)
Пример #2
0
 def equals_cube_t2(self):
     cube = cb.equals_cube(self.l0, self.l1, tolerance=2.0)
     self.assertTrue(cube[0, 0, 0])
     self.assertTrue(cube[0, 0, 1])
     self.assertTrue(cube[0, 0, 2])
     self.assertEqual(cube.sum(), 3)
Пример #3
0
 def equals_cube_t0(self):
     cube = cb.equals_cube(self.l0, self.l1, tolerance=0.0)
     self.assertTrue(cube[0, 0, 0])
     self.assertEqual(cube.sum(), 1)
Пример #4
0
 def equals_cube_t0(self):
     cube = cb.equals_cube(self.l0, self.l1, tolerance=0.0)
     self.assertTrue(cube[0, 0, 0])
     self.assertEqual(cube.sum(), 1)