Back to index

lightning-sunbird  0.9+nobinonly
Functions
NewShortArray_3.cpp File Reference
#include "JNIEnvTests.h"
#include "ArrayOperations.h"

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_NewShortArray_3)

Function Documentation

JNI_OJIAPITest ( JNIEnv_NewShortArray_3  )

Definition at line 40 of file NewShortArray_3.cpp.

{
  GET_JNI_FOR_TEST

  jshortArray arr = env->NewShortArray(0);

  jsize len = env->GetArrayLength(arr);
  if((int)len==0){
     return TestResult::PASS("NewShortArray(0) returns correct value");
  }else{
     return TestResult::FAIL("NewShortArray(0) returns incorrect value");
  }


}

Here is the call graph for this function: