X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/test/intltest/jamotest.cpp diff --git a/icuSources/test/intltest/jamotest.cpp b/icuSources/test/intltest/jamotest.cpp index 154d0857..63925ab3 100644 --- a/icuSources/test/intltest/jamotest.cpp +++ b/icuSources/test/intltest/jamotest.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2008, International Business Machines Corporation and + * Copyright (c) 1997-2016, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************** ************************************************************************ @@ -16,6 +18,7 @@ #include "jamotest.h" #include "unicode/utypes.h" #include "unicode/translit.h" +#include "cmemory.h" #include "cpdtrans.h" // SEP is the disambiguation separator used by Latin-Jamo and Jamo-Latin @@ -67,7 +70,7 @@ JamoTest::TestJamo() { Transliterator* latinJamo = Transliterator::createInstance("Latin-Jamo", UTRANS_FORWARD, parseError, status); if (latinJamo == 0 || U_FAILURE(status)) { - errln("FAIL: createInstance() returned 0"); + dataerrln("FAIL: createInstance() returned 0 - %s", u_errorName(status)); return; } @@ -128,7 +131,7 @@ JamoTest::TestJamo() { "karka", "(Ki)(A)(L)(Ki)(A)", "kalka", }; - enum { CASE_length = sizeof(CASE) / sizeof(CASE[0]) }; + enum { CASE_length = UPRV_LENGTHOF(CASE) }; int32_t i; for (i=0; icreateInverse(status);