Permalink
Browse files

test_ch.py: make sure numpy arrays get casted to float64

  • Loading branch information...
1 parent 04ed5a1 commit 435772a3402dc3fc116b5eaa55097a09aadf44a1 @mattloper committed Feb 17, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 test_ch.py
View
@@ -77,6 +77,10 @@ def test_tensordot(self):
cc.dr_wrt(bc)
#print cn
+ def test_make_sure_is_double(self):
+ x = ch.array([0])
+ self.assertTrue(isinstance(x.r[0], np.float64))
+
def test_cross(self):
aa = ch.random.randn(30).reshape((10,3))
bb = ch.random.randn(30).reshape((10,3))

0 comments on commit 435772a

Please sign in to comment.