예제 #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))
예제 #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))
예제 #3
0
 def test_bool(self):
     self.assertEqual(ndt.bool, ndt.type_for(True))
     self.assertEqual(ndt.bool, ndt.type_for(False))
예제 #4
0
 def test_bool(self):
     self.assertEqual(ndt.bool, ndt.type_for(True))
     self.assertEqual(ndt.bool, ndt.type_for(False))