X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..73c04bcfe1096173b00431f0cdc742894b15eef0:/icuSources/test/intltest/numrgts.h diff --git a/icuSources/test/intltest/numrgts.h b/icuSources/test/intltest/numrgts.h index 30024b00..e20141cd 100644 --- a/icuSources/test/intltest/numrgts.h +++ b/icuSources/test/intltest/numrgts.h @@ -19,8 +19,8 @@ /** * Performs regression test for MessageFormat **/ -class NumberFormatRegressionTest: public IntlTest { - +class NumberFormatRegressionTest: public IntlTest { + // IntlTest override void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); public: @@ -97,74 +97,6 @@ protected: UBool failure(UErrorCode status, const UnicodeString& msg, const Locale& l); }; -class MyNumberFormatTest : public NumberFormat -{ -public: - - virtual UClassID getDynamicClassID(void) const; - - virtual UnicodeString& format( double number, - UnicodeString& toAppendTo, - FieldPosition& pos, - UErrorCode& status) const - { - return NumberFormat::format(number, toAppendTo, pos, status); - } - - /* Just keep this here to make some of the compilers happy */ - virtual UnicodeString& format(const Formattable& obj, - UnicodeString& toAppendTo, - FieldPosition& pos, - UErrorCode& status) const - { - return NumberFormat::format(obj, toAppendTo, pos, status); - } - - /* Just use one of the format functions */ - virtual UnicodeString& format( double /* number */, - UnicodeString& toAppendTo, - FieldPosition& /* pos */) const - { - toAppendTo = ""; - return toAppendTo; - } - - /* - public Number parse(String text, ParsePosition parsePosition) - { return new Integer(0); } - */ - - /* Just use one of the parse functions */ - virtual void parse( const UnicodeString& /* text */, - Formattable& result, - ParsePosition& /* parsePosition */) const - { - result.setLong((int32_t)0); - } - - virtual void parse( const UnicodeString& text, - Formattable& result, - UErrorCode& status) const - { - NumberFormat::parse(text, result, status); - } - virtual Format* clone() const - { return NULL; } - - virtual UnicodeString& format(int32_t, - UnicodeString& foo, - FieldPosition&) const - { return foo.remove(); } - - virtual UnicodeString& format(int64_t, - UnicodeString& foo, - FieldPosition&) const - { return foo.remove(); } - - virtual void applyPattern(const UnicodeString&, UParseError&, UErrorCode&){ - } -}; - #endif /* #if !UCONFIG_NO_FORMATTING */ #endif // _NUMBERFORMATREGRESSIONTEST_