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))
def test_bool(self): self.assertEqual(ndt.bool, ndt.type_for(True)) self.assertEqual(ndt.bool, ndt.type_for(False))