bolt/bootstrap/cxx/deps/icu/source/test/intltest/tsputil.h
Sam Vervaeck 285f33e93c Add 'bootstrap/cxx/' from commit '7c1a929e9a3d3abb1e2113f531588e059ad5be8c'
git-subtree-dir: bootstrap/cxx
git-subtree-mainline: b732e418cb
git-subtree-split: 7c1a929e9a
2024-01-15 14:04:51 +01:00

48 lines
1.2 KiB
C++

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2011, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#ifndef _PUTILTEST_
#define _PUTILTEST_
#include "intltest.h"
/**
* Test putil.h
**/
class PUtilTest : public IntlTest {
// IntlTest override
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) override;
public:
// void testIEEEremainder(void);
void testMaxMin(void);
private:
// void remainderTest(double x, double y, double exp);
void maxMinTest(double a, double b, double exp, UBool max);
// 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);
};
#endif
//eof