#include "third_party/blink/renderer/platform/wtf/decimal.h"
#include <cfloat>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
namespace blink {
class DecimalStepRange { … };
class DecimalTest : public testing::Test { … };
#define EXPECT_DECIMAL_ENCODED_DATA_EQ(expectedCoefficient, expectedExponent, \
expectedSign, decimal) …
TEST_F(DecimalTest, Abs) { … }
TEST_F(DecimalTest, AbsBigExponent) { … }
TEST_F(DecimalTest, AbsSmallExponent) { … }
TEST_F(DecimalTest, AbsSpecialValues) { … }
TEST_F(DecimalTest, Add) { … }
TEST_F(DecimalTest, AddBigExponent) { … }
TEST_F(DecimalTest, AddSmallExponent) { … }
TEST_F(DecimalTest, AddSpecialValues) { … }
TEST_F(DecimalTest, Ceil) { … }
TEST_F(DecimalTest, CeilingBigExponent) { … }
TEST_F(DecimalTest, CeilingSmallExponent) { … }
TEST_F(DecimalTest, CeilingSpecialValues) { … }
TEST_F(DecimalTest, Compare) { … }
TEST_F(DecimalTest, CompareBigExponent) { … }
TEST_F(DecimalTest, CompareSmallExponent) { … }
TEST_F(DecimalTest, CompareSpecialValues) { … }
TEST_F(DecimalTest, Constructor) { … }
TEST_F(DecimalTest, Division) { … }
TEST_F(DecimalTest, DivisionBigExponent) { … }
TEST_F(DecimalTest, DivisionSmallExponent) { … }
TEST_F(DecimalTest, DivisionSpecialValues) { … }
TEST_F(DecimalTest, EncodedData) { … }
TEST_F(DecimalTest, Floor) { … }
TEST_F(DecimalTest, FloorBigExponent) { … }
TEST_F(DecimalTest, FloorSmallExponent) { … }
TEST_F(DecimalTest, FloorSpecialValues) { … }
TEST_F(DecimalTest, FromDouble) { … }
TEST_F(DecimalTest, FromDoubleLimits) { … }
TEST_F(DecimalTest, FromInt32) { … }
TEST_F(DecimalTest, FromString) { … }
TEST_F(DecimalTest, FromStringLikeNumber) { … }
TEST_F(DecimalTest, FromStringSpecialValues) { … }
TEST_F(DecimalTest, fromStringTruncated) { … }
TEST_F(DecimalTest, Multiplication) { … }
TEST_F(DecimalTest, MultiplicationBigExponent) { … }
TEST_F(DecimalTest, MultiplicationSmallExponent) { … }
TEST_F(DecimalTest, MultiplicationSpecialValues) { … }
TEST_F(DecimalTest, Negate) { … }
TEST_F(DecimalTest, NegateBigExponent) { … }
TEST_F(DecimalTest, NegateSmallExponent) { … }
TEST_F(DecimalTest, NegateSpecialValues) { … }
TEST_F(DecimalTest, Predicates) { … }
TEST_F(DecimalTest, PredicatesSpecialValues) { … }
TEST_F(DecimalTest, RealWorldExampleNumberStepUpStepDownFromRenderer) { … }
TEST_F(DecimalTest, RealWorldExampleNumberStepUpStepDownFromRendererRounding) { … }
TEST_F(DecimalTest, RealWorldExampleRangeStepUpStepDown) { … }
TEST_F(DecimalTest, Remainder) { … }
TEST_F(DecimalTest, RemainderBigExponent) { … }
TEST_F(DecimalTest, RemainderSmallExponent) { … }
TEST_F(DecimalTest, RemainderSpecialValues) { … }
TEST_F(DecimalTest, Round) { … }
TEST_F(DecimalTest, RoundSpecialValues) { … }
TEST_F(DecimalTest, Subtract) { … }
TEST_F(DecimalTest, SubtractBigExponent) { … }
TEST_F(DecimalTest, SubtractSmallExponent) { … }
TEST_F(DecimalTest, SubtractSpecialValues) { … }
TEST_F(DecimalTest, ToDouble) { … }
TEST_F(DecimalTest, ToDoubleSpecialValues) { … }
TEST_F(DecimalTest, ToString) { … }
TEST_F(DecimalTest, ToStringSpecialValues) { … }
}