Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(643)

Unified Diff: source/test/intltest/tchcfmt.cpp

Issue 285520043: ticket:12012: Replace all sizeof p / sizeof *p with UPRV_LENGTHOF(). (Closed) Base URL: svn+ssh://source.icu-project.org/repos/icu/icu/trunk
Patch Set: Code review. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/svccoll.cpp ('k') | source/test/intltest/testidna.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/tchcfmt.cpp
diff --git a/source/test/intltest/tchcfmt.cpp b/source/test/intltest/tchcfmt.cpp
index bd50389d4d825fdb02ff2e94196b5ba8278fc482..62c10dea1bd261c2a1083229416ab48adc1838ad 100644
--- a/source/test/intltest/tchcfmt.cpp
+++ b/source/test/intltest/tchcfmt.cpp
@@ -1,7 +1,6 @@
-
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2011, International Business Machines Corporation and
+ * Copyright (c) 1997-2016, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
@@ -636,7 +635,7 @@ void TestChoiceFormat::TestChoiceFormatToPatternOverflow()
{
static const double limits[] = {0.1e-78, 1e13, 0.1e78};
UnicodeString monthNames[] = { "one", "two", "three" };
- ChoiceFormat fmt(limits, monthNames, sizeof(limits)/sizeof(limits[0]));
+ ChoiceFormat fmt(limits, monthNames, UPRV_LENGTHOF(limits));
UnicodeString patStr, expectedPattern1("1e-79#one|10000000000000#two|1e+77#three"),
expectedPattern2("1e-079#one|10000000000000#two|1e+077#three");
fmt.toPattern(patStr);
« no previous file with comments | « source/test/intltest/svccoll.cpp ('k') | source/test/intltest/testidna.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b