Example #1
0
    def testSetGet(self):
        """
        Tests using Jep.set(String, Object) for java NDArrays
        of the different primitive types.  Then uses
        Jep.get(String) to get a Java NDArray back and
        checks for equality/symmetry.

        Also checks that in Java, new NDArray(args) does not
        allow bad args through.
        """
        from tests.jep_pipe import build_java_process_cmd
        from tests.jep_pipe import jep_pipe

        jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpy'))
Example #2
0
    def testSetGet(self):
        """
        Tests using Jep.set(String, Object) for java NDArrays
        of the different primitive types.  Then uses
        Jep.get(String) to get a Java NDArray back and
        checks for equality/symmetry.

        Also checks that in Java, new NDArray(args) does not
        allow bad args through.
        """
        from tests.jep_pipe import build_java_process_cmd
        from tests.jep_pipe import jep_pipe

        jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpy'))
Example #3
0
 def test_numpy_array_to_string(self):
     jep_pipe(
         build_java_process_cmd('jep.test.numpy.TestNumpyArrayToString'))
Example #4
0
 def test_numpy_prod_succeeds(self):
     jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpyProdShared'))
Example #5
0
 def test_shared_modules(self):
     jep_pipe(build_java_process_cmd('jep.test.TestSharedModules'))
Example #6
0
 def test_inits(self):
     jep_pipe(build_java_process_cmd('jep.test.TestPreInitVariables'))
Example #7
0
 def test_get_bytearray(self):
     jep_pipe(build_java_process_cmd('jep.test.TestGetByteArray'))
Example #8
0
 def test_get_collection_boxing(self):
     jep_pipe(build_java_process_cmd('jep.test.TestGetCollectionBoxing'))
Example #9
0
 def test_compiledScript(self):
     jep_pipe(build_java_process_cmd('jep.test.TestCompiledScript'))
Example #10
0
 def test_inits(self):
     jep_pipe(build_java_process_cmd('jep.test.TestPreInitVariables'))
Example #11
0
 def test_numpy_array_to_string(self):
     jep_pipe(build_java_process_cmd(
         'jep.test.numpy.TestNumpyArrayToString'))
Example #12
0
 def test_numpy_prod_succeeds(self):
     jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpyProdShared'))
Example #13
0
 def test_shared_modules(self):
     jep_pipe(build_java_process_cmd('jep.test.TestSharedModules'))