Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_float_of(self):
default_bytes = numpy.dtype(float).itemsize * 8
self.assertEqual(Float[default_bytes], Float.type_of(1.0))
self.assertEqual(Float[default_bytes], Float.type_of(1000000000.0))
self.assertEqual(Float[default_bytes], Float.type_of(-1000000000.0))
def test_float_of(self):
default_bytes = numpy.dtype(float).itemsize * 8
self.assertEqual(Float[default_bytes], Float.type_of(1.0))
self.assertEqual(Float[default_bytes], Float.type_of(1000000000.0))
self.assertEqual(Float[default_bytes], Float.type_of(-1000000000.0))
def test_float_of(self):
default_bytes = numpy.dtype(float).itemsize * 8
self.assertEqual(Float[default_bytes], Float.type_of(1.0))
self.assertEqual(Float[default_bytes], Float.type_of(1000000000.0))
self.assertEqual(Float[default_bytes], Float.type_of(-1000000000.0))