예제 #1
0
파일: test_utils.py 프로젝트: cpcloud/span
 def test_not_hascomplex(self):
     n = self.n
     x = randn(n, randint(1, n))
     self.assertFalse(hascomplex(x))
예제 #2
0
파일: test_utils.py 프로젝트: cpcloud/span
 def test_not_hascomplex_dataframe(self):
     n = self.n
     x = DataFrame(randn(n, randint(1, n)))
     self.assertFalse(hascomplex(x))
예제 #3
0
파일: test_utils.py 프로젝트: cpcloud/span
 def test_hascomplex(self):
     n = self.n
     x = randn(n, randint(1, n)) + 1j
     self.assert_(hascomplex(x))
예제 #4
0
파일: test_utils.py 프로젝트: cpcloud/span
 def test_hascomplex_dataframe(self):
     x = DataFrame(self.x)
     self.assert_(hascomplex(x))