2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2011, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#ifndef _PUTILTEST_
|
|
|
|
#define _PUTILTEST_
|
|
|
|
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test putil.h
|
|
|
|
**/
|
|
|
|
class PUtilTest : public IntlTest {
|
|
|
|
// IntlTest override
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
|
1999-08-16 21:50:52 +00:00
|
|
|
public:
|
|
|
|
|
2001-10-05 18:47:09 +00:00
|
|
|
// void testIEEEremainder(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
void testMaxMin(void);
|
|
|
|
|
|
|
|
private:
|
2001-10-05 18:47:09 +00:00
|
|
|
// void remainderTest(double x, double y, double exp);
|
2000-05-18 22:08:39 +00:00
|
|
|
void maxMinTest(double a, double b, double exp, UBool max);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2004-04-04 08:10:35 +00:00
|
|
|
// the actual tests; methods return the number of errors
|
|
|
|
void testNaN(void);
|
|
|
|
void testPositiveInfinity(void);
|
|
|
|
void testNegativeInfinity(void);
|
|
|
|
void testZero(void);
|
|
|
|
|
|
|
|
// subtests of testNaN
|
|
|
|
void testIsNaN(void);
|
|
|
|
void NaNGT(void);
|
|
|
|
void NaNLT(void);
|
|
|
|
void NaNGTE(void);
|
|
|
|
void NaNLTE(void);
|
|
|
|
void NaNE(void);
|
|
|
|
void NaNNE(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
//eof
|