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_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))
def test_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))
def test_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))
def test_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))
def test_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))
def test_uint_of(self):
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt[DEFAULT_INT_BITS], UInt.type_of(1000000000))
self.assertEqual(UInt8, UInt.type_of(numpy.uint8))
self.assertEqual(UInt16, UInt.type_of(numpy.uint16))
self.assertEqual(UInt32, UInt.type_of(numpy.uint32))
self.assertEqual(UInt64, UInt.type_of(numpy.uint64))