示例#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))