/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2001, International Business Machines Corporation and
- * others. All Rights Reserved.
- ********************************************************************/
-/********************************************************************************
-*
-* File CFINTST.C
-*
-* Modification History:
-* Name Description
-* Madhu Katragadda Ported for C API
-*********************************************************************************/
+ * Copyright (c) 1997-2009, International Business Machines
+ * Corporation and others. All Rights Reserved.
+ ********************************************************************
+ *
+ * File CFINTST.C
+ *
+ * Modification History:
+ * Name Description
+ * Madhu Katragadda Ported for C API
+ ********************************************************************
+ */
+
/**
* CollationFinnishTest is a third level test class. This tests the locale
* specific primary, secondary and tertiary rules. For example, the ignorable
int32_t i;
UErrorCode status = U_ZERO_ERROR;
- myCollation = ucol_open("fi_FI", &status);
+ myCollation = ucol_open("fi_FI@collation=standard", &status);
if(U_FAILURE(status)){
- log_err("ERROR: in creation of rule based collator: %s\n", myErrorName(status));
+ log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
}
log_verbose("Testing Finnish Collation with Tertiary strength\n");
ucol_setStrength(myCollation, UCOL_TERTIARY);
int32_t i;
UErrorCode status = U_ZERO_ERROR;
- myCollation = ucol_open("fi_FI", &status);
+ myCollation = ucol_open("fi_FI@collation=standard", &status);
if(U_FAILURE(status)){
- log_err("ERROR: in creation of rule based collator: %s\n", myErrorName(status));
+ log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
}
log_verbose("Testing Finnish Collation with Tertiary strength\n");
ucol_setStrength(myCollation, UCOL_PRIMARY);
- for (i = 4; i < 4; i++)
+ for (i = 4; i < 5; i++)
{
doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
}