コード例 #1
0
ファイル: test_dtype.py プロジェクト: tempbottle/dynd-python
 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
ファイル: test_dtype.py プロジェクト: tempbottle/dynd-python
 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))