]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/transapi.cpp
ICU-64232.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / transapi.cpp
index 76597d28a213c5412ca67ef503457a8b3bc91399..0e56a0fe3336aa070505eb5f31f9a09bf03e20cd 100644 (file)
@@ -512,17 +512,18 @@ void TransliteratorAPITest::TestKeyboardTransliterator1(){
     logln("Testing transliterate(Replaceable, int32_t, UChar, UErrorCode)");
     for(i=10; i<UPRV_LENGTHOF(Data); i=i+2){
         UnicodeString log;
-         if (Data[i+0] != "") {
-           log = s + " + " + Data[i+0] + " -> ";
-           UChar c=Data[i+0].charAt(0);
-           t->transliterate(s, index, c, status);
-           if(U_FAILURE(status))
+        if (Data[i+0] != "") {
+            log = s + " + " + Data[i+0] + " -> ";
+            UChar c=Data[i+0].charAt(0);
+            t->transliterate(s, index, c, status);
+            if(U_FAILURE(status)) {
                errln("FAIL: " + t->getID()+ ".transliterate(Replaceable, int32_t[], UChar, UErrorCode)-->" + (UnicodeString)u_errorName(status));
                continue;
-         }else {
+            }
+        } else {
            log = s + " => ";
            t->finishTransliteration(s, index);
-         }
+        }
         // Show the start index '{' and the cursor '|'
         displayOutput(s, Data[i+1], log, index); 
     }