git.haldean.org symrep / 77b62f3
fix translation tests Will Haldean Brown 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
100100 symrep.solids.sphere(symrep.const(2)),
101101 symrep.const(np.array((4., 0., 0.))),
102102 )
103 self.assertLessEqual(n((4., 0., 0., 1.)), 0)
104 self.assertLessEqual(n((4., 1.5, 0., 1.)), 0)
105 self.assertGreaterEqual(n((4., 2.5, 0., 1.)), 0)
106 self.assertGreaterEqual(n((0., 0., 0., 1.)), 0)
103 self.assertLessEqual(n((4., 0., 0.)), 0)
104 self.assertLessEqual(n((4., 1.5, 0.)), 0)
105 self.assertGreaterEqual(n((4., 2.5, 0.)), 0)
106 self.assertGreaterEqual(n((0., 0., 0.)), 0)
107107
108108 if __name__ == "__main__":
109109 unittest.main()