]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/putiltst.c
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / test / cintltst / putiltst.c
index d6abc9352dc695e48180f9b9594e9c3e822fd022..b99d9fca9c373bf1369c689983fc928d4de435a9 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1998-2012, International Business Machines Corporation and
+ * Copyright (c) 1998-2016, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 /*
@@ -565,7 +567,7 @@ static void toolutil_findBasename(void)
       ""
     },
   };
-  int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
+  int32_t count=UPRV_LENGTHOF(testCases);
   int32_t i;
 
 
@@ -661,7 +663,7 @@ static void toolutil_findDirname(void)
       ""
     }
   };
-  int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
+  int32_t count=UPRV_LENGTHOF(testCases);
 
   log_verbose("Testing findDirname()\n");
   for(i=0;i<count;i++) {