X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..1a147d096ae81f4c8262f7bfc56bd19fc2dee932:/icuSources/test/cintltst/cucdapi.c?ds=sidebyside diff --git a/icuSources/test/cintltst/cucdapi.c b/icuSources/test/cintltst/cucdapi.c index 155f0e49..9b359c7a 100644 --- a/icuSources/test/cintltst/cucdapi.c +++ b/icuSources/test/cintltst/cucdapi.c @@ -1,5 +1,7 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** - * Copyright (c) 1997-2014, International Business Machines + * Copyright (c) 1997-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************/ @@ -125,11 +127,11 @@ void TestUScriptCodeAPI(){ err = U_ZERO_ERROR; capacity = 10; num = uscript_getCode("ja",script,capacity, &err); - if(num!=(sizeof(jaCode)/sizeof(UScriptCode))){ + if(num!=UPRV_LENGTHOF(jaCode)){ log_err("Errors uscript_getScriptCode() for Japanese locale: num=%d, expected %d \n", - num, (sizeof(jaCode)/sizeof(UScriptCode))); + num, UPRV_LENGTHOF(jaCode)); } - for(j=0;j