예제 #1
0
 def test_numeric(self):
     """Test python numeric types
     """
     test = np.random.randint(1000)
     self.helper(int(test))
     self.helper(long(test))
     self.helper(float(test))
     self.helper(complex(1, 2))
예제 #2
0
 def test_numeric(self):
     """Test python numeric types
     """
     test = np.random.randint(1000)
     self.helper(int(test))
     self.helper(long(test))
     self.helper(float(test))
     self.helper(complex(1, 2))