]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/testdata/casing.txt
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / casing.txt
index 0ec8cb914765d95ad30ee26d137852a93ffc079e..8643355a01a2ff200ae8dc30743363ac510f4735 100644 (file)
@@ -1,6 +1,8 @@
 //*******************************************************************************
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 //*
-//*   Copyright (C) 2002-2008, International Business Machines
+//*   Copyright (C) 2002-2010, International Business Machines
 //*   Corporation and others.  All Rights Reserved.
 //*
 //*******************************************************************************
@@ -54,6 +56,9 @@ casing:table(nofallback) {
             { "ʻcAt! ʻeTc.", "ʻCAt! ʻeTc.", "", "-2", "L" }, // U_TITLECASE_NO_LOWERCASE
             { "ʻcAt! ʻeTc.", "ʻcAt! ʻeTc.", "", "-2", "AL" }, // Both options
 
+            // Test case for ticket #7251: UCharacter.toTitleCase() throws OutOfMemoryError
+            // when TITLECASE_NO_LOWERCASE encounters a single-letter word
+            { "a b c", "A B C", "", "1", "L" } // U_TITLECASE_NO_LOWERCASE
         }
       }
       casefolding {