From: JinWang An Date: Fri, 18 Dec 2020 09:02:21 +0000 (+0900) Subject: [TCT][Non-ACR][base-utils][ITC][Fix test case for ICU 67.1] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca5c92635677b91f11ee8b25a3a94bf90b7ec195;p=test%2Ftct%2Fnative%2Fapi.git [TCT][Non-ACR][base-utils][ITC][Fix test case for ICU 67.1] Change-Id: Ib5ece5ba945f29f0bfd50812fc22bccdfc697e6a Signed-off-by: JinWang An --- diff --git a/src/itc/base-utils/ITs-base-utils-measure-unit.c b/src/itc/base-utils/ITs-base-utils-measure-unit.c index 9c4670612..78f492c6d 100755 --- a/src/itc/base-utils/ITs-base-utils-measure-unit.c +++ b/src/itc/base-utils/ITs-base-utils-measure-unit.c @@ -23,7 +23,7 @@ //& set: BaseUtilsMeasureUnit void ITs_base_utils_measure_unit_startup(void) { - struct stat stBuff; + struct stat stBuff; if ( stat(ERR_LOG, &stBuff) == 0 ) { remove(ERR_LOG); @@ -31,8 +31,8 @@ void ITs_base_utils_measure_unit_startup(void) #if DEBUG FPRINTF("\\n[Line : %d][%s] TEST SUIT start-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE); #endif - - + + return; } @@ -42,7 +42,7 @@ void ITs_base_utils_measure_unit_cleanup(void) FPRINTF("\\n[Line : %d][%s] TEST SUIT clean-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE); #endif - + return; } @@ -56,7 +56,7 @@ static bool MeasureUnitAvailableTypesCB(const char *type_id, void *user_data) { FPRINTF("\\n[Line : %d][%s] MeasureUnitAvailableTypesCB hit type_id [%s]\\n", __LINE__, API_NAMESPACE,type_id); g_bCallbackHit = true; - + return false; } @@ -74,22 +74,22 @@ static bool MeasureUnitAvailableTypesCB(const char *type_id, void *user_data) * @passcase When i18n_measure_unit_create, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_destroy_p(void) -{ +{ START_TEST_PRINT; i18n_measure_unit_h hMeasureUnit = NULL; - + //Target API int nRet = i18n_measure_unit_create(&hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit, "i18n_measure_unit_create"); - + //Target API nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -107,28 +107,28 @@ int ITc_i18n_measure_unit_create_destroy_p(void) * @passcase When i18n_measure_unit_clone, i18n_measure_unit_destroy, i18n_measure_unit_create_megahertz, i18n_measure_unit_get_type is successful * @failcase If target i18n_measure_unit_clone, i18n_measure_unit_destroy, i18n_measure_unit_create_megahertz, i18n_measure_unit_get_type API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_clone_p(void) -{ +{ START_TEST_PRINT; i18n_measure_unit_h hMeasureUnit = NULL; i18n_measure_unit_h hClone = NULL; char *pSubtype = NULL; char *type = NULL; char *pRefSubtype = "megahertz"; - const char *pRefType = "frequency"; - + const char *pRefType = "frequency"; + //Target API int nRet = i18n_measure_unit_create_megahertz(&hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megahertz", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit, "i18n_measure_unit_create_megahertz"); - + //Target API nRet = i18n_measure_unit_clone(hMeasureUnit, &hClone); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_clone", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); CHECK_HANDLE(hClone, "i18n_measure_unit_clone"); - + //Target API nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hClone);i18n_measure_unit_destroy(hMeasureUnit)); @@ -138,10 +138,10 @@ int ITc_i18n_measure_unit_clone_p(void) i18n_measure_unit_destroy(hClone); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); - + //Target API nRet = i18n_measure_unit_get_subtype(hClone, &pSubtype); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hClone);i18n_measure_unit_destroy(hMeasureUnit)); @@ -151,16 +151,16 @@ int ITc_i18n_measure_unit_clone_p(void) i18n_measure_unit_destroy(hClone); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hClone); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -178,25 +178,25 @@ int ITc_i18n_measure_unit_clone_p(void) * @passcase When i18n_measure_unit_get_available, i18n_measure_unit_array_destroy is successful * @failcase If target i18n_measure_unit_get_available, i18n_measure_unit_array_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_get_available_destroy_p(void) -{ +{ START_TEST_PRINT; - + int32_t available = -1; i18n_measure_unit_h *hDestAray = NULL; int32_t dest_capacity = 3000; - //Target API + //Target API int nRet = i18n_measure_unit_get_available(dest_capacity, &hDestAray, &available); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_available", BaseUtilsGetError(nRet)); CHECK_HANDLE(hDestAray, "i18n_measure_unit_get_available"); - + //Target API nRet = i18n_measure_unit_array_destroy(hDestAray, available); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_array_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -214,26 +214,26 @@ int ITc_i18n_measure_unit_get_available_destroy_p(void) * @passcase When i18n_measure_unit_get_available_with_type, i18n_measure_unit_array_destroy is successful * @failcase If target i18n_measure_unit_get_available_with_type, i18n_measure_unit_array_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_get_available_with_type_p(void) -{ +{ START_TEST_PRINT; - + int32_t available = -1; const char *type = "area"; i18n_measure_unit_h *hDestAray = NULL; int32_t dest_capacity = 3000; - - - //Target API + + + //Target API int nRet = i18n_measure_unit_get_available_with_type(dest_capacity, type, &hDestAray, &available); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_available_with_type", BaseUtilsGetError(nRet)); CHECK_HANDLE(hDestAray, "i18n_measure_unit_get_available_with_type"); - + nRet = i18n_measure_unit_array_destroy(hDestAray, available); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_array_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -251,25 +251,25 @@ int ITc_i18n_measure_unit_get_available_with_type_p(void) * @passcase When i18n_measure_unit_foreach_available_type, i18n_measure_unit_array_destroy is successful * @failcase If target i18n_measure_unit_foreach_available_type, i18n_measure_unit_array_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_foreach_available_type_p(void) -{ +{ START_TEST_PRINT; - + g_bCallbackHit = false; int nTimeoutId = 0; - - //Target API + + //Target API int nRet = i18n_measure_unit_foreach_available_type(MeasureUnitAvailableTypesCB, NULL); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_foreach_available_type", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_foreach_available_type", BaseUtilsGetError(nRet)); RUN_POLLING_LOOP; if(!g_bCallbackHit) { FPRINTF("\\n[Line : %d][%s] MeasureUnitAvailableTypesCB callback not invoked in i18n_measure_unit_foreach_available_type!! \\n", __LINE__, API_NAMESPACE); return 1; } - + return 0; } @@ -287,31 +287,31 @@ int ITc_i18n_measure_unit_foreach_available_type_p(void) * @passcase When i18n_measure_unit_create_g_force, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_g_force, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_g_force_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "acceleration"; const char *pRefSubtype = "g-force"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_g_force(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_g_force", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_g_force", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_g_force"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -319,58 +319,58 @@ int ITc_i18n_measure_unit_create_g_force_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } //& type: auto -//& purpose: Gets unit of acceleration: meter-per-second-squared +//& purpose: Gets unit of acceleration: meter-per-square-second /** * @testcase ITc_i18n_measure_unit_create_meter_per_second_squared_p * @since_tizen 3.0 * @author SRID(gaurav.m2) * @reviewer SRID(shobhit.v) * @type auto -* @scenario Gets unit of acceleration: meter-per-second-squared +* @scenario Gets unit of acceleration: meter-per-square-second * @apitarget i18n_measure_unit_create_meter_per_second_squared, i18n_measure_unit_destroy * @apicovered i18n_measure_unit_create_meter_per_second_squared, i18n_measure_unit_destroy * @passcase When i18n_measure_unit_create_meter_per_second_squared, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_meter_per_second_squared, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_meter_per_second_squared_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "acceleration"; - const char *pRefSubtype = "meter-per-second-squared"; + const char *pRefSubtype = "meter-per-square-second"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_meter_per_second_squared(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter_per_second_squared", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter_per_second_squared", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_meter_per_second_squared"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -378,16 +378,16 @@ int ITc_i18n_measure_unit_create_meter_per_second_squared_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -405,31 +405,31 @@ int ITc_i18n_measure_unit_create_meter_per_second_squared_p(void) * @passcase When i18n_measure_unit_create_arc_minute, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_arc_minute, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_arc_minute_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "angle"; const char *pRefSubtype = "arc-minute"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_arc_minute(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_arc_minute", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_arc_minute", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_arc_minute"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -437,16 +437,16 @@ int ITc_i18n_measure_unit_create_arc_minute_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -464,31 +464,31 @@ int ITc_i18n_measure_unit_create_arc_minute_p(void) * @passcase When i18n_measure_unit_create_arc_second, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_arc_second, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_arc_second_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "angle"; const char *pRefSubtype = "arc-second"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_arc_second(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_arc_second", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_arc_second", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_arc_second"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -496,16 +496,16 @@ int ITc_i18n_measure_unit_create_arc_second_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -523,31 +523,31 @@ int ITc_i18n_measure_unit_create_arc_second_p(void) * @passcase When i18n_measure_unit_create_degree, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_degree, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_degree_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "angle"; const char *pRefSubtype = "degree"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_degree(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_degree", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_degree", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_degree"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -555,16 +555,16 @@ int ITc_i18n_measure_unit_create_degree_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -582,31 +582,31 @@ int ITc_i18n_measure_unit_create_degree_p(void) * @passcase When i18n_measure_unit_create_radian, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_radian, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_radian_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "angle"; const char *pRefSubtype = "radian"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_radian(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_radian", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_radian", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_radian"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -614,16 +614,16 @@ int ITc_i18n_measure_unit_create_radian_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -641,31 +641,31 @@ int ITc_i18n_measure_unit_create_radian_p(void) * @passcase When i18n_measure_unit_create_acre, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_acre, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_acre_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "acre"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_acre(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_acre", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_acre", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_acre"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -673,16 +673,16 @@ int ITc_i18n_measure_unit_create_acre_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -700,31 +700,31 @@ int ITc_i18n_measure_unit_create_acre_p(void) * @passcase When i18n_measure_unit_create_hectare, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_hectare, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_hectare_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "hectare"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_hectare(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectare", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectare", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_hectare"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -732,16 +732,16 @@ int ITc_i18n_measure_unit_create_hectare_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) !=0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -759,31 +759,31 @@ int ITc_i18n_measure_unit_create_hectare_p(void) * @passcase When i18n_measure_unit_create_square_centimeter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_centimeter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_centimeter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-centimeter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_centimeter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_centimeter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_centimeter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_centimeter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -791,16 +791,16 @@ int ITc_i18n_measure_unit_create_square_centimeter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -819,31 +819,31 @@ int ITc_i18n_measure_unit_create_square_centimeter_p(void) * @passcase When i18n_measure_unit_create_square_foot, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_foot, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_foot_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-foot"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_foot(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_foot", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_foot", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_foot"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -851,16 +851,16 @@ int ITc_i18n_measure_unit_create_square_foot_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -878,31 +878,31 @@ int ITc_i18n_measure_unit_create_square_foot_p(void) * @passcase When i18n_measure_unit_create_square_inch, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_inch, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_inch_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-inch"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_inch(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_inch", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_inch", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_inch"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -910,16 +910,16 @@ int ITc_i18n_measure_unit_create_square_inch_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -937,31 +937,31 @@ int ITc_i18n_measure_unit_create_square_inch_p(void) * @passcase When i18n_measure_unit_create_square_kilometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_kilometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_kilometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-kilometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_kilometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_kilometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_kilometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_kilometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -969,16 +969,16 @@ int ITc_i18n_measure_unit_create_square_kilometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -996,31 +996,31 @@ int ITc_i18n_measure_unit_create_square_kilometer_p(void) * @passcase When i18n_measure_unit_create_square_meter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_meter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_meter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-meter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_meter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_meter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_meter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_meter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1028,16 +1028,16 @@ int ITc_i18n_measure_unit_create_square_meter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1055,31 +1055,31 @@ int ITc_i18n_measure_unit_create_square_meter_p(void) * @passcase When i18n_measure_unit_create_square_mile, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_mile, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_mile_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-mile"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_mile(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_mile", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_mile", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_mile"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1087,16 +1087,16 @@ int ITc_i18n_measure_unit_create_square_mile_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1114,31 +1114,31 @@ int ITc_i18n_measure_unit_create_square_mile_p(void) * @passcase When i18n_measure_unit_create_square_yard, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_square_yard, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_square_yard_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "area"; const char *pRefSubtype = "square-yard"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_square_yard(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_yard", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_square_yard", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_square_yard"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1146,16 +1146,16 @@ int ITc_i18n_measure_unit_create_square_yard_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1173,31 +1173,31 @@ int ITc_i18n_measure_unit_create_square_yard_p(void) * @passcase When i18n_measure_unit_create_liter_per_kilometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_liter_per_kilometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_liter_per_kilometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "consumption"; const char *pRefSubtype = "liter-per-kilometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_liter_per_kilometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_liter_per_kilometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_liter_per_kilometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_liter_per_kilometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1205,16 +1205,16 @@ int ITc_i18n_measure_unit_create_liter_per_kilometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1232,31 +1232,31 @@ int ITc_i18n_measure_unit_create_liter_per_kilometer_p(void) * @passcase When i18n_measure_unit_create_mile_per_gallon, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_mile_per_gallon, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_mile_per_gallon_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "consumption"; const char *pRefSubtype = "mile-per-gallon"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_mile_per_gallon(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile_per_gallon", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile_per_gallon", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_mile_per_gallon"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1264,16 +1264,16 @@ int ITc_i18n_measure_unit_create_mile_per_gallon_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1291,31 +1291,31 @@ int ITc_i18n_measure_unit_create_mile_per_gallon_p(void) * @passcase When i18n_measure_unit_create_bit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_bit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_bit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "bit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_bit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_bit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_bit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_bit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1323,16 +1323,16 @@ int ITc_i18n_measure_unit_create_bit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1350,31 +1350,31 @@ int ITc_i18n_measure_unit_create_bit_p(void) * @passcase When i18n_measure_unit_create_byte, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_byte, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_byte_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "byte"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_byte(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_byte", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_byte", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_byte"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1382,16 +1382,16 @@ int ITc_i18n_measure_unit_create_byte_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1409,31 +1409,31 @@ int ITc_i18n_measure_unit_create_byte_p(void) * @passcase When i18n_measure_unit_create_gigabit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gigabit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gigabit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "gigabit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gigabit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigabit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigabit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gigabit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1441,16 +1441,16 @@ int ITc_i18n_measure_unit_create_gigabit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1468,31 +1468,31 @@ int ITc_i18n_measure_unit_create_gigabit_p(void) * @passcase When i18n_measure_unit_create_gigabyte, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gigabyte, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gigabyte_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "gigabyte"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gigabyte(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigabyte", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigabyte", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gigabyte"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1500,16 +1500,16 @@ int ITc_i18n_measure_unit_create_gigabyte_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1527,31 +1527,31 @@ int ITc_i18n_measure_unit_create_gigabyte_p(void) * @passcase When i18n_measure_unit_create_kilobit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilobit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilobit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "kilobit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilobit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilobit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilobit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilobit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1559,16 +1559,16 @@ int ITc_i18n_measure_unit_create_kilobit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1586,31 +1586,31 @@ int ITc_i18n_measure_unit_create_kilobit_p(void) * @passcase When i18n_measure_unit_create_kilobyte, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilobyte, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilobyte_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "kilobyte"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilobyte(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilobyte", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilobyte", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilobyte"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1618,16 +1618,16 @@ int ITc_i18n_measure_unit_create_kilobyte_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1645,31 +1645,31 @@ int ITc_i18n_measure_unit_create_kilobyte_p(void) * @passcase When i18n_measure_unit_create_megabit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_megabit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_megabit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "megabit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_megabit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megabit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megabit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_megabit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1677,16 +1677,16 @@ int ITc_i18n_measure_unit_create_megabit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1704,31 +1704,31 @@ int ITc_i18n_measure_unit_create_megabit_p(void) * @passcase When i18n_measure_unit_create_megabyte, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_megabyte, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_megabyte_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "megabyte"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_megabyte(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megabyte", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megabyte", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_megabyte"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1736,16 +1736,16 @@ int ITc_i18n_measure_unit_create_megabyte_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1763,31 +1763,31 @@ int ITc_i18n_measure_unit_create_megabyte_p(void) * @passcase When i18n_measure_unit_create_terabit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_terabit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_terabit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "terabit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_terabit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_terabit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_terabit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_terabit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1795,16 +1795,16 @@ int ITc_i18n_measure_unit_create_terabit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1822,31 +1822,31 @@ int ITc_i18n_measure_unit_create_terabit_p(void) * @passcase When i18n_measure_unit_create_terabyte, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_terabyte, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_terabyte_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "digital"; const char *pRefSubtype = "terabyte"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_terabyte(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_terabyte", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_terabyte", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_terabyte"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1854,16 +1854,16 @@ int ITc_i18n_measure_unit_create_terabyte_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1881,31 +1881,31 @@ int ITc_i18n_measure_unit_create_terabyte_p(void) * @passcase When i18n_measure_unit_create_day, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_day, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_day_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "day"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_day(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_day", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_day", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_day"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1913,16 +1913,16 @@ int ITc_i18n_measure_unit_create_day_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1940,31 +1940,31 @@ int ITc_i18n_measure_unit_create_day_p(void) * @passcase When i18n_measure_unit_create_hour, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_hour, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_hour_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "hour"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_hour(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hour", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hour", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_hour"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -1972,16 +1972,16 @@ int ITc_i18n_measure_unit_create_hour_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -1999,31 +1999,31 @@ int ITc_i18n_measure_unit_create_hour_p(void) * @passcase When i18n_measure_unit_create_microsecond, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_microsecond, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_microsecond_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "microsecond"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_microsecond(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_microsecond", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_microsecond", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_microsecond"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2031,16 +2031,16 @@ int ITc_i18n_measure_unit_create_microsecond_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2058,31 +2058,31 @@ int ITc_i18n_measure_unit_create_microsecond_p(void) * @passcase When i18n_measure_unit_create_millisecond, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_millisecond, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_millisecond_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "millisecond"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_millisecond(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millisecond", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millisecond", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_millisecond"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2090,16 +2090,16 @@ int ITc_i18n_measure_unit_create_millisecond_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2117,31 +2117,31 @@ int ITc_i18n_measure_unit_create_millisecond_p(void) * @passcase When i18n_measure_unit_create_minute, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_minute, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_minute_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "minute"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_minute(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_minute", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_minute", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_minute"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2149,16 +2149,16 @@ int ITc_i18n_measure_unit_create_minute_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2176,31 +2176,31 @@ int ITc_i18n_measure_unit_create_minute_p(void) * @passcase When i18n_measure_unit_create_month, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_month, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_month_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "month"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_month(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_month", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_month", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_month"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2208,16 +2208,16 @@ int ITc_i18n_measure_unit_create_month_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2235,31 +2235,31 @@ int ITc_i18n_measure_unit_create_month_p(void) * @passcase When i18n_measure_unit_create_nanosecond, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_nanosecond, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_nanosecond_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "nanosecond"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_nanosecond(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nanosecond", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nanosecond", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_nanosecond"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2267,16 +2267,16 @@ int ITc_i18n_measure_unit_create_nanosecond_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2294,31 +2294,31 @@ int ITc_i18n_measure_unit_create_nanosecond_p(void) * @passcase When i18n_measure_unit_create_second, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_second, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_second_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "second"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_second(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_second", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_second", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_second"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2326,16 +2326,16 @@ int ITc_i18n_measure_unit_create_second_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2353,31 +2353,31 @@ int ITc_i18n_measure_unit_create_second_p(void) * @passcase When i18n_measure_unit_create_week, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_week, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_week_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "week"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_week(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_week", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_week", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_week"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2385,16 +2385,16 @@ int ITc_i18n_measure_unit_create_week_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2412,31 +2412,31 @@ int ITc_i18n_measure_unit_create_week_p(void) * @passcase When i18n_measure_unit_create_year, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_year, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_year_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "duration"; const char *pRefSubtype = "year"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_year(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_year", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_year", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_year"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2444,16 +2444,16 @@ int ITc_i18n_measure_unit_create_year_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2471,31 +2471,31 @@ int ITc_i18n_measure_unit_create_year_p(void) * @passcase When i18n_measure_unit_create_ampere, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_ampere, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_ampere_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "electric"; const char *pRefSubtype = "ampere"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_ampere(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ampere", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ampere", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_ampere"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2503,16 +2503,16 @@ int ITc_i18n_measure_unit_create_ampere_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2530,31 +2530,31 @@ int ITc_i18n_measure_unit_create_ampere_p(void) * @passcase When i18n_measure_unit_create_milliampere, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_milliampere, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_milliampere_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "electric"; const char *pRefSubtype = "milliampere"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_milliampere(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliampere", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliampere", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_milliampere"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2562,16 +2562,16 @@ int ITc_i18n_measure_unit_create_milliampere_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2589,31 +2589,31 @@ int ITc_i18n_measure_unit_create_milliampere_p(void) * @passcase When i18n_measure_unit_create_ohm, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_ohm, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_ohm_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "electric"; const char *pRefSubtype = "ohm"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_ohm(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ohm", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ohm", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_ohm"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2621,16 +2621,16 @@ int ITc_i18n_measure_unit_create_ohm_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2648,31 +2648,31 @@ int ITc_i18n_measure_unit_create_ohm_p(void) * @passcase When i18n_measure_unit_create_volt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_volt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_volt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "electric"; const char *pRefSubtype = "volt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_volt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_volt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_volt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_volt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2680,16 +2680,16 @@ int ITc_i18n_measure_unit_create_volt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2707,31 +2707,31 @@ int ITc_i18n_measure_unit_create_volt_p(void) * @passcase When i18n_measure_unit_create_calorie, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_calorie, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_calorie_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "calorie"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_calorie(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_calorie", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_calorie", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_calorie"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2739,16 +2739,16 @@ int ITc_i18n_measure_unit_create_calorie_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2766,31 +2766,31 @@ int ITc_i18n_measure_unit_create_calorie_p(void) * @passcase When i18n_measure_unit_create_foodcalorie, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_foodcalorie, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_foodcalorie_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "foodcalorie"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_foodcalorie(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_foodcalorie", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_foodcalorie", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_foodcalorie"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2798,16 +2798,16 @@ int ITc_i18n_measure_unit_create_foodcalorie_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2825,31 +2825,31 @@ int ITc_i18n_measure_unit_create_foodcalorie_p(void) * @passcase When i18n_measure_unit_create_joule, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_joule, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_joule_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "joule"; char *pSubtype = NULL; char *type = NULL; - - //Target API - int nRet = i18n_measure_unit_create_joule(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_joule", BaseUtilsGetError(nRet)); + + //Target API + int nRet = i18n_measure_unit_create_joule(&hMeasureUnit); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_joule", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_joule"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2857,16 +2857,16 @@ int ITc_i18n_measure_unit_create_joule_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2884,31 +2884,31 @@ int ITc_i18n_measure_unit_create_joule_p(void) * @passcase When i18n_measure_unit_create_kilocalorie, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilocalorie, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilocalorie_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "kilocalorie"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilocalorie(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilocalorie", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilocalorie", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilocalorie"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2916,16 +2916,16 @@ int ITc_i18n_measure_unit_create_kilocalorie_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -2943,31 +2943,31 @@ int ITc_i18n_measure_unit_create_kilocalorie_p(void) * @passcase When i18n_measure_unit_create_kilojoule, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilojoule, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilojoule_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "kilojoule"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilojoule(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilojoule", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilojoule", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilojoule"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -2975,16 +2975,16 @@ int ITc_i18n_measure_unit_create_kilojoule_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3002,31 +3002,31 @@ int ITc_i18n_measure_unit_create_kilojoule_p(void) * @passcase When i18n_measure_unit_create_kilowatt_hour, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilowatt_hour, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilowatt_hour_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "energy"; const char *pRefSubtype = "kilowatt-hour"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilowatt_hour(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilowatt_hour", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilowatt_hour", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilowatt_hour"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3034,16 +3034,16 @@ int ITc_i18n_measure_unit_create_kilowatt_hour_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3061,31 +3061,31 @@ int ITc_i18n_measure_unit_create_kilowatt_hour_p(void) * @passcase When i18n_measure_unit_create_gigahertz, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gigahertz, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gigahertz_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "frequency"; const char *pRefSubtype = "gigahertz"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gigahertz(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigahertz", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigahertz", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gigahertz"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3093,16 +3093,16 @@ int ITc_i18n_measure_unit_create_gigahertz_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3120,31 +3120,31 @@ int ITc_i18n_measure_unit_create_gigahertz_p(void) * @passcase When i18n_measure_unit_create_hertz, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_hertz, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_hertz_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "frequency"; const char *pRefSubtype = "hertz"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_hertz(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hertz", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hertz", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_hertz"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3152,16 +3152,16 @@ int ITc_i18n_measure_unit_create_hertz_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3179,31 +3179,31 @@ int ITc_i18n_measure_unit_create_hertz_p(void) * @passcase When i18n_measure_unit_create_kilohertz, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilohertz, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilohertz_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "frequency"; const char *pRefSubtype = "kilohertz"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilohertz(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilohertz", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilohertz", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilohertz"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3211,16 +3211,16 @@ int ITc_i18n_measure_unit_create_kilohertz_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3238,31 +3238,31 @@ int ITc_i18n_measure_unit_create_kilohertz_p(void) * @passcase When i18n_measure_unit_create_megahertz, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_megahertz, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_megahertz_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "frequency"; const char *pRefSubtype = "megahertz"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_megahertz(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megahertz", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megahertz", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_megahertz"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3270,16 +3270,16 @@ int ITc_i18n_measure_unit_create_megahertz_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3297,31 +3297,31 @@ int ITc_i18n_measure_unit_create_megahertz_p(void) * @passcase When i18n_measure_unit_create_astronomical_unit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_astronomical_unit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_astronomical_unit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "astronomical-unit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_astronomical_unit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_astronomical_unit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_astronomical_unit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_astronomical_unit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3329,16 +3329,16 @@ int ITc_i18n_measure_unit_create_astronomical_unit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3356,31 +3356,31 @@ int ITc_i18n_measure_unit_create_astronomical_unit_p(void) * @passcase When i18n_measure_unit_create_centimeter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_centimeter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_centimeter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "centimeter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_centimeter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_centimeter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_centimeter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_centimeter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3388,16 +3388,16 @@ int ITc_i18n_measure_unit_create_centimeter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3415,31 +3415,31 @@ int ITc_i18n_measure_unit_create_centimeter_p(void) * @passcase When i18n_measure_unit_create_decimeter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_decimeter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_decimeter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "decimeter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_decimeter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_decimeter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_decimeter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_decimeter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3447,16 +3447,16 @@ int ITc_i18n_measure_unit_create_decimeter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3474,31 +3474,31 @@ int ITc_i18n_measure_unit_create_decimeter_p(void) * @passcase When i18n_measure_unit_create_fathom, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_fathom, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_fathom_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "fathom"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_fathom(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fathom", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fathom", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_fathom"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3506,16 +3506,16 @@ int ITc_i18n_measure_unit_create_fathom_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3533,31 +3533,31 @@ int ITc_i18n_measure_unit_create_fathom_p(void) * @passcase When i18n_measure_unit_create_foot, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_foot, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_foot_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "foot"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_foot(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_foot", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_foot", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_foot"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3565,16 +3565,16 @@ int ITc_i18n_measure_unit_create_foot_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3592,31 +3592,31 @@ int ITc_i18n_measure_unit_create_foot_p(void) * @passcase When i18n_measure_unit_create_furlong, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_furlong, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_furlong_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "furlong"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_furlong(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_furlong", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_furlong", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_furlong"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3624,16 +3624,16 @@ int ITc_i18n_measure_unit_create_furlong_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3651,31 +3651,31 @@ int ITc_i18n_measure_unit_create_furlong_p(void) * @passcase When i18n_measure_unit_create_inch, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_inch, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_inch_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "inch"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_inch(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_inch", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_inch", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_inch"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3683,16 +3683,16 @@ int ITc_i18n_measure_unit_create_inch_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3710,31 +3710,31 @@ int ITc_i18n_measure_unit_create_inch_p(void) * @passcase When i18n_measure_unit_create_kilometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "kilometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3742,16 +3742,16 @@ int ITc_i18n_measure_unit_create_kilometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3769,31 +3769,31 @@ int ITc_i18n_measure_unit_create_kilometer_p(void) * @passcase When i18n_measure_unit_create_light_year, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_light_year, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_light_year_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "light-year"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_light_year(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_light_year", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_light_year", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_light_year"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3801,16 +3801,16 @@ int ITc_i18n_measure_unit_create_light_year_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3828,31 +3828,31 @@ int ITc_i18n_measure_unit_create_light_year_p(void) * @passcase When i18n_measure_unit_create_meter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_meter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_meter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "meter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_meter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_meter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3860,16 +3860,16 @@ int ITc_i18n_measure_unit_create_meter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3887,31 +3887,31 @@ int ITc_i18n_measure_unit_create_meter_p(void) * @passcase When i18n_measure_unit_create_micrometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_micrometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_micrometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "micrometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_micrometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_micrometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_micrometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_micrometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3919,16 +3919,16 @@ int ITc_i18n_measure_unit_create_micrometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -3946,31 +3946,31 @@ int ITc_i18n_measure_unit_create_micrometer_p(void) * @passcase When i18n_measure_unit_create_mile, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_mile, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_mile_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "mile"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_mile(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_mile"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -3978,16 +3978,16 @@ int ITc_i18n_measure_unit_create_mile_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4005,31 +4005,31 @@ int ITc_i18n_measure_unit_create_mile_p(void) * @passcase When i18n_measure_unit_create_millimeter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_millimeter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_millimeter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "millimeter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_millimeter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millimeter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millimeter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_millimeter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4037,16 +4037,16 @@ int ITc_i18n_measure_unit_create_millimeter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4064,31 +4064,31 @@ int ITc_i18n_measure_unit_create_millimeter_p(void) * @passcase When i18n_measure_unit_create_nanometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_nanometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_nanometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "nanometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_nanometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nanometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nanometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_nanometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4096,16 +4096,16 @@ int ITc_i18n_measure_unit_create_nanometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4123,31 +4123,31 @@ int ITc_i18n_measure_unit_create_nanometer_p(void) * @passcase When i18n_measure_unit_create_nautical_mile, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_nautical_mile, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_nautical_mile_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "nautical-mile"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_nautical_mile(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nautical_mile", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_nautical_mile", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_nautical_mile"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4155,16 +4155,16 @@ int ITc_i18n_measure_unit_create_nautical_mile_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4182,31 +4182,31 @@ int ITc_i18n_measure_unit_create_nautical_mile_p(void) * @passcase When i18n_measure_unit_create_parsec, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_parsec, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_parsec_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "parsec"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_parsec(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_parsec", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_parsec", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_parsec"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4214,16 +4214,16 @@ int ITc_i18n_measure_unit_create_parsec_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4241,31 +4241,31 @@ int ITc_i18n_measure_unit_create_parsec_p(void) * @passcase When i18n_measure_unit_create_picometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_picometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_picometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "picometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_picometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_picometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_picometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_picometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4273,16 +4273,16 @@ int ITc_i18n_measure_unit_create_picometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4300,31 +4300,31 @@ int ITc_i18n_measure_unit_create_picometer_p(void) * @passcase When i18n_measure_unit_create_yard, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_yard, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_yard_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "length"; const char *pRefSubtype = "yard"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_yard(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_yard", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_yard", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_yard"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4332,16 +4332,16 @@ int ITc_i18n_measure_unit_create_yard_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4359,31 +4359,31 @@ int ITc_i18n_measure_unit_create_yard_p(void) * @passcase When i18n_measure_unit_create_lux, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_lux, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_lux_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "light"; const char *pRefSubtype = "lux"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_lux(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_lux", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_lux", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_lux"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4391,16 +4391,16 @@ int ITc_i18n_measure_unit_create_lux_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4418,31 +4418,31 @@ int ITc_i18n_measure_unit_create_lux_p(void) * @passcase When i18n_measure_unit_create_carat, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_carat, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_carat_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "carat"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_carat(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_carat", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_carat", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_carat"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4450,16 +4450,16 @@ int ITc_i18n_measure_unit_create_carat_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4477,31 +4477,31 @@ int ITc_i18n_measure_unit_create_carat_p(void) * @passcase When i18n_measure_unit_create_gram, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gram, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gram_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "gram"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gram(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gram", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gram", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gram"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4509,16 +4509,16 @@ int ITc_i18n_measure_unit_create_gram_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4536,31 +4536,31 @@ int ITc_i18n_measure_unit_create_gram_p(void) * @passcase When i18n_measure_unit_create_kilogram, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilogram, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilogram_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "kilogram"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilogram(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilogram", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilogram", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilogram"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4568,16 +4568,16 @@ int ITc_i18n_measure_unit_create_kilogram_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4595,31 +4595,31 @@ int ITc_i18n_measure_unit_create_kilogram_p(void) * @passcase When i18n_measure_unit_create_metric_ton, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_metric_ton, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_metric_ton_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "metric-ton"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_metric_ton(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_metric_ton", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_metric_ton", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_metric_ton"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4627,16 +4627,16 @@ int ITc_i18n_measure_unit_create_metric_ton_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4654,31 +4654,31 @@ int ITc_i18n_measure_unit_create_metric_ton_p(void) * @passcase When i18n_measure_unit_create_microgram, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_microgram, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_microgram_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "microgram"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_microgram(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_microgram", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_microgram", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_microgram"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4686,16 +4686,16 @@ int ITc_i18n_measure_unit_create_microgram_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4713,31 +4713,31 @@ int ITc_i18n_measure_unit_create_microgram_p(void) * @passcase When i18n_measure_unit_create_milligram, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_milligram, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_milligram_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "milligram"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_milligram(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milligram", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milligram", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_milligram"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4745,16 +4745,16 @@ int ITc_i18n_measure_unit_create_milligram_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4772,31 +4772,31 @@ int ITc_i18n_measure_unit_create_milligram_p(void) * @passcase When i18n_measure_unit_create_ounce, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_ounce, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_ounce_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "ounce"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_ounce(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ounce", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ounce", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_ounce"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4804,16 +4804,16 @@ int ITc_i18n_measure_unit_create_ounce_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4831,31 +4831,31 @@ int ITc_i18n_measure_unit_create_ounce_p(void) * @passcase When i18n_measure_unit_create_ounce_troy, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_ounce_troy, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_ounce_troy_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "ounce-troy"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_ounce_troy(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ounce_troy", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ounce_troy", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_ounce_troy"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4863,16 +4863,16 @@ int ITc_i18n_measure_unit_create_ounce_troy_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4890,31 +4890,31 @@ int ITc_i18n_measure_unit_create_ounce_troy_p(void) * @passcase When i18n_measure_unit_create_pound, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_pound, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_pound_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "pound"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_pound(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pound", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pound", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_pound"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4922,16 +4922,16 @@ int ITc_i18n_measure_unit_create_pound_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -4949,31 +4949,31 @@ int ITc_i18n_measure_unit_create_pound_p(void) * @passcase When i18n_measure_unit_create_stone, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_stone, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_stone_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "stone"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_stone(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_stone", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_stone", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_stone"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -4981,16 +4981,16 @@ int ITc_i18n_measure_unit_create_stone_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5008,31 +5008,31 @@ int ITc_i18n_measure_unit_create_stone_p(void) * @passcase When i18n_measure_unit_create_ton, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_ton, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_ton_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "mass"; const char *pRefSubtype = "ton"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_ton(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ton", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_ton", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_ton"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5040,16 +5040,16 @@ int ITc_i18n_measure_unit_create_ton_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5067,31 +5067,31 @@ int ITc_i18n_measure_unit_create_ton_p(void) * @passcase When i18n_measure_unit_create_gigawatt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gigawatt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gigawatt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "gigawatt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gigawatt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigawatt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gigawatt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gigawatt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5099,16 +5099,16 @@ int ITc_i18n_measure_unit_create_gigawatt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5126,31 +5126,31 @@ int ITc_i18n_measure_unit_create_gigawatt_p(void) * @passcase When i18n_measure_unit_create_horsepower, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_horsepower, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_horsepower_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "horsepower"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_horsepower(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_horsepower", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_horsepower", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_horsepower"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5158,16 +5158,16 @@ int ITc_i18n_measure_unit_create_horsepower_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5185,31 +5185,31 @@ int ITc_i18n_measure_unit_create_horsepower_p(void) * @passcase When i18n_measure_unit_create_kilowatt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilowatt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilowatt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "kilowatt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilowatt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilowatt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilowatt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilowatt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5217,16 +5217,16 @@ int ITc_i18n_measure_unit_create_kilowatt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5244,31 +5244,31 @@ int ITc_i18n_measure_unit_create_kilowatt_p(void) * @passcase When i18n_measure_unit_create_megawatt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_megawatt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_megawatt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "megawatt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_megawatt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megawatt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megawatt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_megawatt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5276,16 +5276,16 @@ int ITc_i18n_measure_unit_create_megawatt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5303,31 +5303,31 @@ int ITc_i18n_measure_unit_create_megawatt_p(void) * @passcase When i18n_measure_unit_create_milliwatt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_milliwatt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_milliwatt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "milliwatt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_milliwatt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliwatt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliwatt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_milliwatt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5335,16 +5335,16 @@ int ITc_i18n_measure_unit_create_milliwatt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5362,31 +5362,31 @@ int ITc_i18n_measure_unit_create_milliwatt_p(void) * @passcase When i18n_measure_unit_create_watt, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_watt, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_watt_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "power"; const char *pRefSubtype = "watt"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_watt(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_watt", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_watt", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_watt"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5394,16 +5394,16 @@ int ITc_i18n_measure_unit_create_watt_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5421,31 +5421,31 @@ int ITc_i18n_measure_unit_create_watt_p(void) * @passcase When i18n_measure_unit_create_hectopascal, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_hectopascal, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_hectopascal_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "pressure"; const char *pRefSubtype = "hectopascal"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_hectopascal(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectopascal", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectopascal", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_hectopascal"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5453,58 +5453,58 @@ int ITc_i18n_measure_unit_create_hectopascal_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } //& type: auto -//& purpose: Gets unit of pressure: inch-hg +//& purpose: Gets unit of pressure: inch-ofhg /** * @testcase ITc_i18n_measure_unit_create_inch_hg_p * @since_tizen 3.0 * @author SRID(gaurav.m2) * @reviewer SRID(shobhit.v) * @type auto -* @scenario Gets unit of pressure: inch-hg +* @scenario Gets unit of pressure: inch-ofhg * @apitarget i18n_measure_unit_create_inch_hg, i18n_measure_unit_destroy * @apicovered i18n_measure_unit_create_inch_hg, i18n_measure_unit_destroy * @passcase When i18n_measure_unit_create_inch_hg, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_inch_hg, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_inch_hg_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "pressure"; - const char *pRefSubtype = "inch-hg"; + const char *pRefSubtype = "inch-ofhg"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_inch_hg(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_inch_hg", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_inch_hg", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_inch_hg"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5512,16 +5512,16 @@ int ITc_i18n_measure_unit_create_inch_hg_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5539,31 +5539,31 @@ int ITc_i18n_measure_unit_create_inch_hg_p(void) * @passcase When i18n_measure_unit_create_millibar, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_millibar, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_millibar_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "pressure"; const char *pRefSubtype = "millibar"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_millibar(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millibar", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millibar", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_millibar"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5571,58 +5571,58 @@ int ITc_i18n_measure_unit_create_millibar_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } //& type: auto -//& purpose: Gets unit of pressure: millimeter-of-mercury +//& purpose: Gets unit of pressure: millimeter-ofhg /** * @testcase ITc_i18n_measure_unit_create_millimeter_of_mercury_p * @since_tizen 3.0 * @author SRID(gaurav.m2) * @reviewer SRID(shobhit.v) * @type auto -* @scenario Gets unit of pressure: millimeter-of-mercury +* @scenario Gets unit of pressure: millimeter-ofhg * @apitarget i18n_measure_unit_create_millimeter_of_mercury, i18n_measure_unit_destroy * @apicovered i18n_measure_unit_create_millimeter_of_mercury, i18n_measure_unit_destroy * @passcase When i18n_measure_unit_create_millimeter_of_mercury, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_millimeter_of_mercury, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_millimeter_of_mercury_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "pressure"; - const char *pRefSubtype = "millimeter-of-mercury"; + const char *pRefSubtype = "millimeter-ofhg"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_millimeter_of_mercury(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millimeter_of_mercury", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_millimeter_of_mercury", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_millimeter_of_mercury"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5630,58 +5630,58 @@ int ITc_i18n_measure_unit_create_millimeter_of_mercury_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } //& type: auto -//& purpose: Gets unit of pressure: pound-per-square-inch +//& purpose: Gets unit of pressure: pound-force-per-square-inch /** * @testcase ITc_i18n_measure_unit_create_pound_per_square_inch_p * @since_tizen 3.0 * @author SRID(gaurav.m2) * @reviewer SRID(shobhit.v) * @type auto -* @scenario Gets unit of pressure: pound-per-square-inch +* @scenario Gets unit of pressure: pound-force-per-square-inch * @apitarget i18n_measure_unit_create_pound_per_square_inch, i18n_measure_unit_destroy * @apicovered i18n_measure_unit_create_pound_per_square_inch, i18n_measure_unit_destroy * @passcase When i18n_measure_unit_create_pound_per_square_inch, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_pound_per_square_inch, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_pound_per_square_inch_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "pressure"; - const char *pRefSubtype = "pound-per-square-inch"; + const char *pRefSubtype = "pound-force-per-square-inch"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_pound_per_square_inch(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pound_per_square_inch", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pound_per_square_inch", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_pound_per_square_inch"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5689,16 +5689,16 @@ int ITc_i18n_measure_unit_create_pound_per_square_inch_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5716,31 +5716,31 @@ int ITc_i18n_measure_unit_create_pound_per_square_inch_p(void) * @passcase When i18n_measure_unit_create_karat, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_karat, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_karat_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "concentr"; const char *pRefSubtype = "karat"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_karat(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_karat", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_karat", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_karat"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5748,16 +5748,16 @@ int ITc_i18n_measure_unit_create_karat_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5775,31 +5775,31 @@ int ITc_i18n_measure_unit_create_karat_p(void) * @passcase When i18n_measure_unit_create_kilometer_per_hour, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kilometer_per_hour, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kilometer_per_hour_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "speed"; const char *pRefSubtype = "kilometer-per-hour"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kilometer_per_hour(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilometer_per_hour", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kilometer_per_hour", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kilometer_per_hour"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5807,16 +5807,16 @@ int ITc_i18n_measure_unit_create_kilometer_per_hour_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5834,31 +5834,31 @@ int ITc_i18n_measure_unit_create_kilometer_per_hour_p(void) * @passcase When i18n_measure_unit_create_meter_per_second, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_meter_per_second, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_meter_per_second_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "speed"; const char *pRefSubtype = "meter-per-second"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_meter_per_second(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter_per_second", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_meter_per_second", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_meter_per_second"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5866,16 +5866,16 @@ int ITc_i18n_measure_unit_create_meter_per_second_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5893,31 +5893,31 @@ int ITc_i18n_measure_unit_create_meter_per_second_p(void) * @passcase When i18n_measure_unit_create_mile_per_hour, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_mile_per_hour, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_mile_per_hour_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "speed"; const char *pRefSubtype = "mile-per-hour"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_mile_per_hour(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile_per_hour", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_mile_per_hour", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_mile_per_hour"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5925,16 +5925,16 @@ int ITc_i18n_measure_unit_create_mile_per_hour_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -5952,31 +5952,31 @@ int ITc_i18n_measure_unit_create_mile_per_hour_p(void) * @passcase When i18n_measure_unit_create_celsius, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_celsius, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_celsius_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "temperature"; const char *pRefSubtype = "celsius"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_celsius(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_celsius", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_celsius", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_celsius"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -5984,16 +5984,16 @@ int ITc_i18n_measure_unit_create_celsius_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6011,31 +6011,31 @@ int ITc_i18n_measure_unit_create_celsius_p(void) * @passcase When i18n_measure_unit_create_fahrenheit, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_fahrenheit, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_fahrenheit_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "temperature"; const char *pRefSubtype = "fahrenheit"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_fahrenheit(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fahrenheit", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fahrenheit", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_fahrenheit"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6043,16 +6043,16 @@ int ITc_i18n_measure_unit_create_fahrenheit_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6070,31 +6070,31 @@ int ITc_i18n_measure_unit_create_fahrenheit_p(void) * @passcase When i18n_measure_unit_create_kelvin, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_kelvin, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_kelvin_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "temperature"; const char *pRefSubtype = "kelvin"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_kelvin(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kelvin", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_kelvin", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_kelvin"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6102,16 +6102,16 @@ int ITc_i18n_measure_unit_create_kelvin_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6129,31 +6129,31 @@ int ITc_i18n_measure_unit_create_kelvin_p(void) * @passcase When i18n_measure_unit_create_acre_foot, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_acre_foot, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_acre_foot_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "acre-foot"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_acre_foot(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_acre_foot", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_acre_foot", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_acre_foot"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6161,16 +6161,16 @@ int ITc_i18n_measure_unit_create_acre_foot_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6188,31 +6188,31 @@ int ITc_i18n_measure_unit_create_acre_foot_p(void) * @passcase When i18n_measure_unit_create_bushel, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_bushel, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_bushel_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "bushel"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_bushel(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_bushel", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_bushel", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_bushel"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6220,16 +6220,16 @@ int ITc_i18n_measure_unit_create_bushel_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6247,31 +6247,31 @@ int ITc_i18n_measure_unit_create_bushel_p(void) * @passcase When i18n_measure_unit_create_centiliter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_centiliter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_centiliter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "centiliter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_centiliter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_centiliter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_centiliter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_centiliter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6279,16 +6279,16 @@ int ITc_i18n_measure_unit_create_centiliter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6306,31 +6306,31 @@ int ITc_i18n_measure_unit_create_centiliter_p(void) * @passcase When i18n_measure_unit_create_cubic_centimeter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_centimeter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_centimeter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-centimeter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_centimeter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_centimeter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_centimeter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_centimeter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6338,16 +6338,16 @@ int ITc_i18n_measure_unit_create_cubic_centimeter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6365,31 +6365,31 @@ int ITc_i18n_measure_unit_create_cubic_centimeter_p(void) * @passcase When i18n_measure_unit_create_cubic_foot, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_foot, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_foot_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-foot"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_foot(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_foot", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_foot", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_foot"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6397,16 +6397,16 @@ int ITc_i18n_measure_unit_create_cubic_foot_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6424,31 +6424,31 @@ int ITc_i18n_measure_unit_create_cubic_foot_p(void) * @passcase When i18n_measure_unit_create_cubic_inch, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_inch, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_inch_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-inch"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_inch(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_inch", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_inch", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_inch"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6456,16 +6456,16 @@ int ITc_i18n_measure_unit_create_cubic_inch_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6483,31 +6483,31 @@ int ITc_i18n_measure_unit_create_cubic_inch_p(void) * @passcase When i18n_measure_unit_create_cubic_kilometer, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_kilometer, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_kilometer_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-kilometer"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_kilometer(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_kilometer", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_kilometer", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_kilometer"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6515,16 +6515,16 @@ int ITc_i18n_measure_unit_create_cubic_kilometer_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6542,31 +6542,31 @@ int ITc_i18n_measure_unit_create_cubic_kilometer_p(void) * @passcase When i18n_measure_unit_create_cubic_meter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_meter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_meter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-meter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_meter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_meter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_meter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_meter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6574,16 +6574,16 @@ int ITc_i18n_measure_unit_create_cubic_meter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6601,31 +6601,31 @@ int ITc_i18n_measure_unit_create_cubic_meter_p(void) * @passcase When i18n_measure_unit_create_cubic_mile, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_mile, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_mile_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-mile"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_mile(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_mile", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_mile", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_mile"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6633,16 +6633,16 @@ int ITc_i18n_measure_unit_create_cubic_mile_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6660,31 +6660,31 @@ int ITc_i18n_measure_unit_create_cubic_mile_p(void) * @passcase When i18n_measure_unit_create_cubic_yard, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cubic_yard, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cubic_yard_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cubic-yard"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cubic_yard(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_yard", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cubic_yard", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cubic_yard"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6692,16 +6692,16 @@ int ITc_i18n_measure_unit_create_cubic_yard_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6719,31 +6719,31 @@ int ITc_i18n_measure_unit_create_cubic_yard_p(void) * @passcase When i18n_measure_unit_create_cup, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_cup, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_cup_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "cup"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_cup(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cup", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_cup", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_cup"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6751,16 +6751,16 @@ int ITc_i18n_measure_unit_create_cup_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6778,31 +6778,31 @@ int ITc_i18n_measure_unit_create_cup_p(void) * @passcase When i18n_measure_unit_create_deciliter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_deciliter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_deciliter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "deciliter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_deciliter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_deciliter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_deciliter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_deciliter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6810,16 +6810,16 @@ int ITc_i18n_measure_unit_create_deciliter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6837,31 +6837,31 @@ int ITc_i18n_measure_unit_create_deciliter_p(void) * @passcase When i18n_measure_unit_create_fluid_ounce, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_fluid_ounce, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_fluid_ounce_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "fluid-ounce"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_fluid_ounce(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fluid_ounce", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_fluid_ounce", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_fluid_ounce"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6869,16 +6869,16 @@ int ITc_i18n_measure_unit_create_fluid_ounce_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6896,31 +6896,31 @@ int ITc_i18n_measure_unit_create_fluid_ounce_p(void) * @passcase When i18n_measure_unit_create_gallon, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_gallon, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_gallon_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "gallon"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_gallon(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gallon", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_gallon", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_gallon"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6928,16 +6928,16 @@ int ITc_i18n_measure_unit_create_gallon_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -6955,31 +6955,31 @@ int ITc_i18n_measure_unit_create_gallon_p(void) * @passcase When i18n_measure_unit_create_hectoliter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_hectoliter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_hectoliter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "hectoliter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_hectoliter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectoliter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_hectoliter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_hectoliter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -6987,16 +6987,16 @@ int ITc_i18n_measure_unit_create_hectoliter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7014,31 +7014,31 @@ int ITc_i18n_measure_unit_create_hectoliter_p(void) * @passcase When i18n_measure_unit_create_liter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_liter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_liter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "liter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_liter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_liter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_liter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_liter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7046,16 +7046,16 @@ int ITc_i18n_measure_unit_create_liter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7073,31 +7073,31 @@ int ITc_i18n_measure_unit_create_liter_p(void) * @passcase When i18n_measure_unit_create_megaliter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_megaliter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_megaliter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "megaliter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_megaliter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megaliter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_megaliter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_megaliter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7105,16 +7105,16 @@ int ITc_i18n_measure_unit_create_megaliter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7132,31 +7132,31 @@ int ITc_i18n_measure_unit_create_megaliter_p(void) * @passcase When i18n_measure_unit_create_milliliter, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_milliliter, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_milliliter_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "milliliter"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_milliliter(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliliter", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_milliliter", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_milliliter"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7164,16 +7164,16 @@ int ITc_i18n_measure_unit_create_milliliter_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7191,31 +7191,31 @@ int ITc_i18n_measure_unit_create_milliliter_p(void) * @passcase When i18n_measure_unit_create_pint, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_pint, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_pint_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "pint"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_pint(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pint", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_pint", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_pint"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7223,16 +7223,16 @@ int ITc_i18n_measure_unit_create_pint_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7250,31 +7250,31 @@ int ITc_i18n_measure_unit_create_pint_p(void) * @passcase When i18n_measure_unit_create_quart, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_quart, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_quart_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "quart"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_quart(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_quart", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_quart", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_quart"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7282,16 +7282,16 @@ int ITc_i18n_measure_unit_create_quart_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7309,31 +7309,31 @@ int ITc_i18n_measure_unit_create_quart_p(void) * @passcase When i18n_measure_unit_create_tablespoon, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_tablespoon, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_tablespoon_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "tablespoon"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_tablespoon(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_tablespoon", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_tablespoon", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_tablespoon"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7341,16 +7341,16 @@ int ITc_i18n_measure_unit_create_tablespoon_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } @@ -7368,31 +7368,31 @@ int ITc_i18n_measure_unit_create_tablespoon_p(void) * @passcase When i18n_measure_unit_create_teaspoon, i18n_measure_unit_destroy is successful * @failcase If target i18n_measure_unit_create_teaspoon, i18n_measure_unit_destroy API fails or any precondition and postcondition API fails. * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_i18n_measure_unit_create_teaspoon_p(void) -{ +{ START_TEST_PRINT; - + i18n_measure_unit_h hMeasureUnit = NULL; const char *pRefType = "volume"; const char *pRefSubtype = "teaspoon"; char *pSubtype = NULL; char *type = NULL; - - //Target API + + //Target API int nRet = i18n_measure_unit_create_teaspoon(&hMeasureUnit); - PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_teaspoon", BaseUtilsGetError(nRet)); + PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_create_teaspoon", BaseUtilsGetError(nRet)); CHECK_HANDLE(hMeasureUnit,"i18n_measure_unit_create_teaspoon"); - + nRet = i18n_measure_unit_get_type(hMeasureUnit, &type); PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(type, pRefType) !=0 ) { - FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] type is not set as pRefType\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(type); - return 1; + return 1; } FREE_MEMORY(type); @@ -7400,18 +7400,18 @@ int ITc_i18n_measure_unit_create_teaspoon_p(void) PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit)); if(strcmp(pSubtype, pRefSubtype) != 0 ) { - FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); + FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE); i18n_measure_unit_destroy(hMeasureUnit); FREE_MEMORY(pSubtype); - return 1; + return 1; } FREE_MEMORY(pSubtype); - + nRet = i18n_measure_unit_destroy(hMeasureUnit); PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_measure_unit_destroy", BaseUtilsGetError(nRet)); - + return 0; } /** @} */ -/** @} */ \ No newline at end of file +/** @} */