import sys

if sys.maxsize > 2 ** 32:
    from PyObjCTools.TestSupport import *
    import CoreML

    class TestMLMultiArray (TestCase):
        def testConstants(self):
            self.assertEqual(CoreML.MLMultiArrayDataTypeDouble, 0x10000 | 64)
            self.assertEqual(CoreML.MLMultiArrayDataTypeFloat32, 0x10000 | 32)
            self.assertEqual(CoreML.MLMultiArrayDataTypeInt32, 0x20000 | 32)

        @min_os_level('10.13')
        def testMethods(self):
            self.assertArgIsOut(CoreML.MLMultiArray.initWithShape_dataType_error_, 2)

            self.assertResultIsVariableSize(CoreML.MLMultiArray.dataPointer)

            self.assertArgIsVariableSize(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 0)
            self.assertArgIsBlock(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 4, b'v^v')
            self.assertArgIsOut(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 5)


if __name__ == "__main__":
    main()

3222f6fbf579fd27a328aedb38a1f38d86349039
<mask token>

<mask token>
if sys.maxsize > 2 ** 32:
    from PyObjCTools.TestSupport import *
    import CoreML


    class TestMLMultiArray(TestCase):

        def testConstants(self):
            self.assertEqual(CoreML.MLMultiArrayDataTypeDouble, 65536 | 64)
            self.assertEqual(CoreML.MLMultiArrayDataTypeFloat32, 65536 | 32)
            self.assertEqual(CoreML.MLMultiArrayDataTypeInt32, 131072 | 32)

        @min_os_level('10.13')
        def testMethods(self):
            self.assertArgIsOut(CoreML.MLMultiArray.
                initWithShape_dataType_error_, 2)
            self.assertResultIsVariableSize(CoreML.MLMultiArray.dataPointer)
            self.assertArgIsVariableSize(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                0)
            self.assertArgIsBlock(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                4, b'v^v')
            self.assertArgIsOut(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                5)
if __name__ == '__main__':
    main()

import sys
if sys.maxsize > 2 ** 32:
    from PyObjCTools.TestSupport import *
    import CoreML


    class TestMLMultiArray(TestCase):

        def testConstants(self):
            self.assertEqual(CoreML.MLMultiArrayDataTypeDouble, 65536 | 64)
            self.assertEqual(CoreML.MLMultiArrayDataTypeFloat32, 65536 | 32)
            self.assertEqual(CoreML.MLMultiArrayDataTypeInt32, 131072 | 32)

        @min_os_level('10.13')
        def testMethods(self):
            self.assertArgIsOut(CoreML.MLMultiArray.
                initWithShape_dataType_error_, 2)
            self.assertResultIsVariableSize(CoreML.MLMultiArray.dataPointer)
            self.assertArgIsVariableSize(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                0)
            self.assertArgIsBlock(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                4, b'v^v')
            self.assertArgIsOut(CoreML.MLMultiArray.
                initWithDataPointer_shape_dataType_strides_deallocator_error_,
                5)
if __name__ == '__main__':
    main()

import sys

if sys.maxsize > 2 ** 32:
    from PyObjCTools.TestSupport import *
    import CoreML

    class TestMLMultiArray (TestCase):
        def testConstants(self):
            self.assertEqual(CoreML.MLMultiArrayDataTypeDouble, 0x10000 | 64)
            self.assertEqual(CoreML.MLMultiArrayDataTypeFloat32, 0x10000 | 32)
            self.assertEqual(CoreML.MLMultiArrayDataTypeInt32, 0x20000 | 32)

        @min_os_level('10.13')
        def testMethods(self):
            self.assertArgIsOut(CoreML.MLMultiArray.initWithShape_dataType_error_, 2)

            self.assertResultIsVariableSize(CoreML.MLMultiArray.dataPointer)

            self.assertArgIsVariableSize(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 0)
            self.assertArgIsBlock(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 4, b'v^v')
            self.assertArgIsOut(CoreML.MLMultiArray.initWithDataPointer_shape_dataType_strides_deallocator_error_, 5)


if __name__ == "__main__":
    main()
