1/******************************************************************** 2 * COPYRIGHT: 3 * Copyright (c) 1997-2005, International Business Machines Corporation and 4 * others. All Rights Reserved. 5 ********************************************************************/ 6 7 8#ifndef _PUTILTEST_ 9#define _PUTILTEST_ 10 11#include "intltest.h" 12 13/** 14 * Test putil.h 15 **/ 16class PUtilTest : public IntlTest { 17 // IntlTest override 18 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); 19public: 20 21// void testIEEEremainder(void); 22 void testMaxMin(void); 23 24private: 25// void remainderTest(double x, double y, double exp); 26 void maxMinTest(double a, double b, double exp, UBool max); 27 28 // the actual tests; methods return the number of errors 29 void testNaN(void); 30 void testPositiveInfinity(void); 31 void testNegativeInfinity(void); 32 void testZero(void); 33 void testU_INLINE(); 34 35 // subtests of testNaN 36 void testIsNaN(void); 37 void NaNGT(void); 38 void NaNLT(void); 39 void NaNGTE(void); 40 void NaNLTE(void); 41 void NaNE(void); 42 void NaNNE(void); 43 44}; 45 46#endif 47//eof 48