| OLD | NEW | 
|---|
| 1 /******************************************************************** | 1 /******************************************************************** | 
| 2  * Copyright (c) 1997-2009, International Business Machines | 2  * Copyright (c) 1997-2009,2014, International Business Machines | 
| 3  * Corporation and others. All Rights Reserved. | 3  * Corporation and others. All Rights Reserved. | 
| 4  ******************************************************************** | 4  ******************************************************************** | 
| 5  * | 5  * | 
| 6  * File CFINTST.C | 6  * File CFINTST.C | 
| 7  * | 7  * | 
| 8  * Modification History: | 8  * Modification History: | 
| 9  *        Name                     Description | 9  *        Name                     Description | 
| 10  *     Madhu Katragadda            Ported for C API | 10  *     Madhu Katragadda            Ported for C API | 
| 11  ******************************************************************** | 11  ******************************************************************** | 
| 12  */ | 12  */ | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49     {0x004c/*'L'*/, 0x00E4, 0x0077/*'w'*/, 0x0065/*'e'*/, 0x0000}, | 49     {0x004c/*'L'*/, 0x00E4, 0x0077/*'w'*/, 0x0065/*'e'*/, 0x0000}, | 
| 50     {0x0076/*'v'*/, 0x0061/*'a'*/, 0x0074/*'t'*/, 0x0000} | 50     {0x0076/*'v'*/, 0x0061/*'a'*/, 0x0074/*'t'*/, 0x0000} | 
| 51 }; | 51 }; | 
| 52 | 52 | 
| 53 const static UCollationResult results[] = { | 53 const static UCollationResult results[] = { | 
| 54     UCOL_GREATER, | 54     UCOL_GREATER, | 
| 55     UCOL_LESS, | 55     UCOL_LESS, | 
| 56     UCOL_GREATER, | 56     UCOL_GREATER, | 
| 57     UCOL_LESS, | 57     UCOL_LESS, | 
| 58     /* test primary > 4*/ | 58     /* test primary > 4*/ | 
| 59     UCOL_EQUAL | 59     UCOL_GREATER    /* v < w per cldrbug 6615 */ | 
| 60 }; | 60 }; | 
| 61 | 61 | 
| 62 | 62 | 
| 63 | 63 | 
| 64 void addFinnishCollTest(TestNode** root) | 64 void addFinnishCollTest(TestNode** root) | 
| 65 { | 65 { | 
| 66 | 66 | 
| 67 | 67 | 
| 68     addTest(root, &TestPrimary, "tscoll/cficoll/TestPrimary"); | 68     addTest(root, &TestPrimary, "tscoll/cfintst/TestPrimary"); | 
| 69     addTest(root, &TestTertiary, "tscoll/cficoll/TestTertiary"); | 69     addTest(root, &TestTertiary, "tscoll/cfintst/TestTertiary"); | 
| 70 | 70 | 
| 71 | 71 | 
| 72 | 72 | 
| 73 } | 73 } | 
| 74 | 74 | 
| 75 | 75 | 
| 76 static void TestTertiary( ) | 76 static void TestTertiary( ) | 
| 77 { | 77 { | 
| 78 | 78 | 
| 79     int32_t i; | 79     int32_t i; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 93 | 93 | 
| 94 static void TestPrimary() | 94 static void TestPrimary() | 
| 95 { | 95 { | 
| 96 | 96 | 
| 97     int32_t i; | 97     int32_t i; | 
| 98     UErrorCode status = U_ZERO_ERROR; | 98     UErrorCode status = U_ZERO_ERROR; | 
| 99     myCollation = ucol_open("fi_FI@collation=standard", &status); | 99     myCollation = ucol_open("fi_FI@collation=standard", &status); | 
| 100     if(U_FAILURE(status)){ | 100     if(U_FAILURE(status)){ | 
| 101         log_err_status(status, "ERROR: in creation of rule based collator: %s\n"
     , myErrorName(status)); | 101         log_err_status(status, "ERROR: in creation of rule based collator: %s\n"
     , myErrorName(status)); | 
| 102     } | 102     } | 
| 103     log_verbose("Testing Finnish Collation with Tertiary strength\n"); | 103     log_verbose("Testing Finnish Collation with Primary strength\n"); | 
| 104     ucol_setStrength(myCollation, UCOL_PRIMARY); | 104     ucol_setStrength(myCollation, UCOL_PRIMARY); | 
| 105     for (i = 4; i < 5; i++) | 105     for (i = 4; i < 5; i++) | 
| 106     { | 106     { | 
| 107         doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); | 107         doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); | 
| 108     } | 108     } | 
| 109     ucol_close(myCollation); | 109     ucol_close(myCollation); | 
| 110 } | 110 } | 
| 111 | 111 | 
| 112 #endif /* #if !UCONFIG_NO_COLLATION */ | 112 #endif /* #if !UCONFIG_NO_COLLATION */ | 
| OLD | NEW | 
|---|