]> granicus.if.org Git - icu/commitdiff
ICU-13384 Adjusts unit test to work with UCONFIG_NO_BREAK_ITERATION flag set.
authorNorbert Runge <nrunge@google.com>
Thu, 5 Oct 2017 16:53:51 +0000 (16:53 +0000)
committerNorbert Runge <nrunge@google.com>
Thu, 5 Oct 2017 16:53:51 +0000 (16:53 +0000)
X-SVN-Rev: 40569

icu4c/source/test/intltest/strcase.cpp

index f78acc30197469e884b1650cfd8472a2ece50f9f..d9e46cf0b0be5f80af930f551738b3e3b249566c 100644 (file)
@@ -1281,10 +1281,12 @@ void StringCaseTest::TestCaseMapWithEdits() {
                            u"IßtanBul", 8, dest, UPRV_LENGTHOF(dest), &edits, errorCode);
     assertEquals(u"foldCase(IßtanBul)", UnicodeString(u"ıssb"), UnicodeString(TRUE, dest, length));
     static const EditChange foldExpectedChanges[] = {
+#if !UCONFIG_NO_BREAK_ITERATION
             // From titlecasing.
             { FALSE, 1, 1 },
             { TRUE, 1, 1 },
             { FALSE, 10, 10 },
+#endif
             // From case folding.
             { TRUE, 1, 1 },
             { TRUE, 1, 2 },
@@ -1364,10 +1366,12 @@ void StringCaseTest::TestCaseMapUTF8WithEdits() {
     assertEquals(u"foldCase(IßtanBul)", UnicodeString(u"ıssb"),
                  UnicodeString::fromUTF8(StringPiece(dest, length)));
     static const EditChange foldExpectedChanges[] = {
+#if !UCONFIG_NO_BREAK_ITERATION
             // From titlecasing.
             { FALSE, 1, 1 },
             { TRUE, 1, 1 },
             { FALSE, 10, 10 },
+#endif
             // From case folding.
             { TRUE, 1, 2 },
             { TRUE, 2, 2 },