/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2004, 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,2014, 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
UCOL_GREATER,
UCOL_LESS,
/* test primary > 4*/
- UCOL_EQUAL
+ UCOL_GREATER /* v < w per cldrbug 6615 */
};
{
- addTest(root, &TestPrimary, "tscoll/cficoll/TestPrimary");
- addTest(root, &TestTertiary, "tscoll/cficoll/TestTertiary");
+ addTest(root, &TestPrimary, "tscoll/cfintst/TestPrimary");
+ addTest(root, &TestTertiary, "tscoll/cfintst/TestTertiary");
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");
+ log_verbose("Testing Finnish Collation with Primary strength\n");
ucol_setStrength(myCollation, UCOL_PRIMARY);
for (i = 4; i < 5; i++)
{