From ed884bf9367ad828463f0b7c2a569f86e78959ae Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 9 Nov 2006 00:51:18 +0000 Subject: [PATCH] ICU-5366 The Greek RBNF rules don't exist. The default locale's rules shouldn't be tested this way. X-SVN-Rev: 20646 --- icu4c/source/test/intltest/itrbnfrt.cpp | 12 ++++++------ icu4c/source/test/intltest/itrbnfrt.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/icu4c/source/test/intltest/itrbnfrt.cpp b/icu4c/source/test/intltest/itrbnfrt.cpp index ddc5e77bf5f..515b351d945 100644 --- a/icu4c/source/test/intltest/itrbnfrt.cpp +++ b/icu4c/source/test/intltest/itrbnfrt.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 1996-2003, International Business Machines Corporation and * + * Copyright (C) 1996-2006, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -42,7 +42,7 @@ void RbnfRoundTripTest::runIndexedTest(int32_t index, UBool exec, const char* &n TESTCASE(8, TestDutchSpelloutRT); TESTCASE(9, TestJapaneseSpelloutRT); TESTCASE(10, TestRussianSpelloutRT); - TESTCASE(11, TestGreekSpelloutRT); + TESTCASE(11, TestPortugueseSpelloutRT); #else TESTCASE(0, TestRBNFDisabled); #endif @@ -253,19 +253,19 @@ RbnfRoundTripTest::TestRussianSpelloutRT() } /** - * Perform an exhaustive round-trip test on the Greek spellout rules + * Perform an exhaustive round-trip test on the Portuguese spellout rules */ void -RbnfRoundTripTest::TestGreekSpelloutRT() +RbnfRoundTripTest::TestPortugueseSpelloutRT() { UErrorCode status = U_ZERO_ERROR; RuleBasedNumberFormat* formatter - = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("el", "GR"), status); + = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("pt", "BR"), status); if (U_FAILURE(status)) { errln("failed to construct formatter"); } else { - doTest(formatter, 0, 12345678); + doTest(formatter, -12345678, 12345678); } delete formatter; } diff --git a/icu4c/source/test/intltest/itrbnfrt.h b/icu4c/source/test/intltest/itrbnfrt.h index 7155e5de756..70bf23f6f5f 100644 --- a/icu4c/source/test/intltest/itrbnfrt.h +++ b/icu4c/source/test/intltest/itrbnfrt.h @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 1996-2000, International Business Machines Corporation and * + * Copyright (C) 1996-2006, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -77,9 +77,9 @@ class RbnfRoundTripTest : public IntlTest { virtual void TestRussianSpelloutRT(); /** - * Perform an exhaustive round-trip test on the Greek spellout rules + * Perform an exhaustive round-trip test on the Portuguese spellout rules */ - virtual void TestGreekSpelloutRT(); + virtual void TestPortugueseSpelloutRT(); protected: void doTest(const RuleBasedNumberFormat* formatter, double lowLimit, double highLimit);