12e5b6d6dSopenharmony_ci// © 2016 and later: Unicode, Inc. and others.
22e5b6d6dSopenharmony_ci// License & terms of use: http://www.unicode.org/copyright.html
32e5b6d6dSopenharmony_ci/********************************************************************
42e5b6d6dSopenharmony_ci * COPYRIGHT:
52e5b6d6dSopenharmony_ci * Copyright (c) 1997-2011, International Business Machines Corporation and
62e5b6d6dSopenharmony_ci * others. All Rights Reserved.
72e5b6d6dSopenharmony_ci ********************************************************************/
82e5b6d6dSopenharmony_ci
92e5b6d6dSopenharmony_ci
102e5b6d6dSopenharmony_ci#ifndef _PUTILTEST_
112e5b6d6dSopenharmony_ci#define _PUTILTEST_
122e5b6d6dSopenharmony_ci
132e5b6d6dSopenharmony_ci#include "intltest.h"
142e5b6d6dSopenharmony_ci
152e5b6d6dSopenharmony_ci/**
162e5b6d6dSopenharmony_ci * Test putil.h
172e5b6d6dSopenharmony_ci **/
182e5b6d6dSopenharmony_ciclass PUtilTest : public IntlTest {
192e5b6d6dSopenharmony_ci    // IntlTest override
202e5b6d6dSopenharmony_ci    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) override;
212e5b6d6dSopenharmony_cipublic:
222e5b6d6dSopenharmony_ci
232e5b6d6dSopenharmony_ci//    void testIEEEremainder(void);
242e5b6d6dSopenharmony_ci    void testMaxMin(void);
252e5b6d6dSopenharmony_ci
262e5b6d6dSopenharmony_ciprivate:
272e5b6d6dSopenharmony_ci//    void remainderTest(double x, double y, double exp);
282e5b6d6dSopenharmony_ci    void maxMinTest(double a, double b, double exp, UBool max);
292e5b6d6dSopenharmony_ci
302e5b6d6dSopenharmony_ci    // the actual tests; methods return the number of errors
312e5b6d6dSopenharmony_ci    void testNaN(void);
322e5b6d6dSopenharmony_ci    void testPositiveInfinity(void);
332e5b6d6dSopenharmony_ci    void testNegativeInfinity(void);
342e5b6d6dSopenharmony_ci    void testZero(void);
352e5b6d6dSopenharmony_ci
362e5b6d6dSopenharmony_ci    // subtests of testNaN
372e5b6d6dSopenharmony_ci    void testIsNaN(void);
382e5b6d6dSopenharmony_ci    void NaNGT(void);
392e5b6d6dSopenharmony_ci    void NaNLT(void);
402e5b6d6dSopenharmony_ci    void NaNGTE(void);
412e5b6d6dSopenharmony_ci    void NaNLTE(void);
422e5b6d6dSopenharmony_ci    void NaNE(void);
432e5b6d6dSopenharmony_ci    void NaNNE(void);
442e5b6d6dSopenharmony_ci
452e5b6d6dSopenharmony_ci};
462e5b6d6dSopenharmony_ci
472e5b6d6dSopenharmony_ci#endif
482e5b6d6dSopenharmony_ci//eof
49