2015-05-01 21:57:22 +00:00
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import division
|
|
|
|
from __future__ import absolute_import
|
2014-05-05 07:29:33 +00:00
|
|
|
import unittest
|
|
|
|
from jnius.reflect import autoclass
|
|
|
|
|
|
|
|
class MultipleDimensionsTest(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_multiple_dimensions(self):
|
|
|
|
MultipleDims = autoclass('org.jnius.MultipleDimensions')
|
|
|
|
matrix = [[1, 2, 3],
|
|
|
|
[4, 5, 6],
|
|
|
|
[7, 8, 9]]
|
2020-04-03 21:48:26 +00:00
|
|
|
self.assertEqual(MultipleDims.methodParamsMatrixI(matrix), True)
|
|
|
|
self.assertEqual(MultipleDims.methodReturnMatrixI(), matrix)
|