Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: source/test/intltest/numfmtst.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/numfmtspectest.cpp ('k') | source/test/intltest/numfmtst.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/numfmtst.h
diff --git a/source/test/intltest/numfmtst.h b/source/test/intltest/numfmtst.h
index c03defb14122d9e96fcfbc6f8b731417e7137079..25ef40644275e9b3e02a47403927a3a4966bbd84 100644
--- a/source/test/intltest/numfmtst.h
+++ b/source/test/intltest/numfmtst.h
@@ -1,6 +1,6 @@
/************************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2014, International Business Machines Corporation
+ * Copyright (c) 1997-2015, International Business Machines Corporation
* and others. All Rights Reserved.
************************************************************************/
@@ -16,6 +16,19 @@
#include "caltztst.h"
/**
+ * Expected field positions from field position iterator. Tests should
+ * stack allocate an array of these making sure that the last element is
+ * {0, -1, 0} (The sentinel element indicating end of iterator). Then test
+ * should call verifyFieldPositionIterator() passing both this array of
+ * expected results and the field position iterator from the format method.
+ */
+struct NumberFormatTest_Attributes {
+ int32_t id;
+ int32_t spos;
+ int32_t epos;
+};
+
+/**
* Performs various in-depth test on NumberFormat
**/
class NumberFormatTest: public CalendarTimeZoneTest {
@@ -183,6 +196,23 @@ class NumberFormatTest: public CalendarTimeZoneTest {
void TestEquality();
void TestCurrencyUsage();
+ void TestNumberFormatTestTuple();
+ void TestDataDriven();
+
+ void TestDoubleLimit11439();
+ void TestFastPathConsistent11524();
+ void TestGetAffixes();
+ void TestToPatternScientific11648();
+ void TestBenchmark();
+ void TestCtorApplyPatternDifference();
+ void TestFractionalDigitsForCurrency();
+ void TestFormatCurrencyPlural();
+ void Test11868();
+ void Test10727_RoundingZero();
+ void Test11376_getAndSetPositivePrefix();
+ void Test11475_signRecognition();
+ void Test11640_getAffixes();
+ void Test11649_toPatternWithMultiCurrency();
private:
UBool testFormattableAsUFormattable(const char *file, int line, Formattable &f);
@@ -303,6 +333,10 @@ class NumberFormatTest: public CalendarTimeZoneTest {
int32_t valueSize,
int32_t roundingModeSize);
+ void verifyFieldPositionIterator(
+ NumberFormatTest_Attributes *expected,
+ FieldPositionIterator &iter);
+
};
#endif /* #if !UCONFIG_NO_FORMATTING */
« no previous file with comments | « source/test/intltest/numfmtspectest.cpp ('k') | source/test/intltest/numfmtst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698