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'))
def test_numpy_array_to_string(self): jep_pipe( build_java_process_cmd('jep.test.numpy.TestNumpyArrayToString'))
def test_numpy_prod_succeeds(self): jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpyProdShared'))
def test_shared_modules(self): jep_pipe(build_java_process_cmd('jep.test.TestSharedModules'))
def test_inits(self): jep_pipe(build_java_process_cmd('jep.test.TestPreInitVariables'))
def test_get_bytearray(self): jep_pipe(build_java_process_cmd('jep.test.TestGetByteArray'))
def test_get_collection_boxing(self): jep_pipe(build_java_process_cmd('jep.test.TestGetCollectionBoxing'))
def test_compiledScript(self): jep_pipe(build_java_process_cmd('jep.test.TestCompiledScript'))
def test_numpy_array_to_string(self): jep_pipe(build_java_process_cmd( 'jep.test.numpy.TestNumpyArrayToString'))