//& 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);
#if DEBUG
FPRINTF("\\n[Line : %d][%s] TEST SUIT start-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE);
#endif
-
-
+
+
return;
}
FPRINTF("\\n[Line : %d][%s] TEST SUIT clean-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE);
#endif
-
+
return;
}
{
FPRINTF("\\n[Line : %d][%s] MeasureUnitAvailableTypesCB hit type_id [%s]\\n", __LINE__, API_NAMESPACE,type_id);
g_bCallbackHit = true;
-
+
return false;
}
* @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;
}
* @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));
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));
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;
}
* @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;
}
* @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;
}
* @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;
}
* @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);
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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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);
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;
}
* @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);
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);
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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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;
}
* @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);
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
+/** @} */