]> granicus.if.org Git - icu/commitdiff
ICU-8246 forgot to invoke TestGetEasyToUseInstance()
authorMarkus Scherer <markus.icu@gmail.com>
Thu, 1 Dec 2011 06:01:05 +0000 (06:01 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Thu, 1 Dec 2011 06:01:05 +0000 (06:01 +0000)
X-SVN-Rev: 30998

icu4c/source/test/cintltst/cnormtst.c

index 8724040666711e82751fe3d682f86b637c0579bd..183ff589e62da87752ff3f282b001585e419c0fe 100644 (file)
@@ -69,6 +69,7 @@ static void
 TestGetRawDecomposition(void);
 
 static void TestAppendRestoreMiddle(void);
+static void TestGetEasyToUseInstance(void);
 
 static const char* const canonTests[][3] = {
     /* Input*/                    /*Decomposed*/                /*Composed*/
@@ -159,6 +160,7 @@ void addNormTest(TestNode** root)
     addTest(root, &TestGetDecomposition, "tsnorm/cnormtst/TestGetDecomposition");
     addTest(root, &TestGetRawDecomposition, "tsnorm/cnormtst/TestGetRawDecomposition");
     addTest(root, &TestAppendRestoreMiddle, "tsnorm/cnormtst/TestAppendRestoreMiddle");
+    addTest(root, &TestGetEasyToUseInstance, "tsnorm/cnormtst/TestGetEasyToUseInstance");
 }
 
 static const char* const modeStrings[]={
@@ -1673,7 +1675,7 @@ TestGetEasyToUseInstance() {
         return;
     }
     length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode);
-    if(U_FAILURE(errorCode) || length!=2 || out[0]!=0x20 || out[1]!=0x43 || out[2]!=0x327 || out[3]!=0x301) {
+    if(U_FAILURE(errorCode) || length!=4 || out[0]!=0x20 || out[1]!=0x43 || out[2]!=0x327 || out[3]!=0x301) {
         log_err("unorm2_getNFKDInstance() did not return an NFKD instance (normalized length=%d; %s)\n",
                 (int)length, u_errorName(errorCode));
     }