]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/cfintst.c
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cfintst.c
index 04fcdd3962dd935d7e8b9e9f124cfcc0ba7fba52..1bc8cfd16329d15684f0e02a7b159a74e30d296a 100644 (file)
@@ -1,16 +1,16 @@
 /********************************************************************
- * 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
@@ -78,9 +78,9 @@ static void 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);
@@ -96,13 +96,13 @@ static void TestPrimary()
     
     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]);
     }