Exemplo n.º 1
0
 def test_int(self):
     self.assertEqual(ndt.int32, ndt.type_for(0))
     self.assertEqual(ndt.int32, ndt.type_for(1))
     self.assertEqual(ndt.int32, ndt.type_for(7))
Exemplo n.º 2
0
 def test_int(self):
     self.assertEqual(ndt.int32, ndt.type_for(0))
     self.assertEqual(ndt.int32, ndt.type_for(1))
     self.assertEqual(ndt.int32, ndt.type_for(7))
Exemplo n.º 3
0
 def test_bool(self):
     self.assertEqual(ndt.bool, ndt.type_for(True))
     self.assertEqual(ndt.bool, ndt.type_for(False))
Exemplo n.º 4
0
 def test_bool(self):
     self.assertEqual(ndt.bool, ndt.type_for(True))
     self.assertEqual(ndt.bool, ndt.type_for(False))