chromium/third_party/dawn/src/tint/utils/strconv/float_to_string_test.cc

// Copyright 2020 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "src/tint/utils/strconv/float_to_string.h"

#include <math.h>
#include <cstring>
#include <limits>

#include "gtest/gtest.h"
#include "src/tint/utils/memory/bitcast.h"

namespace tint::strconv {
namespace {

////////////////////////////////////////////////////////////////////////////////
// FloatToString                                                              //
////////////////////////////////////////////////////////////////////////////////

TEST(FloatToStringTest, Zero) {}

TEST(FloatToStringTest, One) {}

TEST(FloatToStringTest, MinusOne) {}

TEST(FloatToStringTest, Billion) {}

TEST(FloatToStringTest, Small) {}

TEST(FloatToStringTest, Highest) {}

TEST(FloatToStringTest, Lowest) {}

TEST(FloatToStringTest, Precision) {}

////////////////////////////////////////////////////////////////////////////////
// FloatToBitPreservingString                                                 //
////////////////////////////////////////////////////////////////////////////////

TEST(FloatToBitPreservingStringTest, Zero) {}

TEST(FloatToBitPreservingStringTest, NegativeZero) {}

TEST(FloatToBitPreservingStringTest, One) {}

TEST(FloatToBitPreservingStringTest, MinusOne) {}

TEST(FloatToBitPreservingStringTest, Billion) {}

TEST(FloatToBitPreservingStringTest, Small) {}

TEST(FloatToBitPreservingStringTest, Highest) {}

TEST(FloatToBitPreservingStringTest, Lowest) {}

TEST(FloatToBitPreservingStringTest, SmallestDenormal) {}

TEST(FloatToBitPreservingStringTest, BiggerDenormal) {}

TEST(FloatToBitPreservingStringTest, LargestDenormal) {}

TEST(FloatToBitPreservingStringTest, Subnormal_cafebe) {}

TEST(FloatToBitPreservingStringTest, Subnormal_aaaaa) {}

TEST(FloatToBitPreservingStringTest, Infinity) {}

TEST(FloatToBitPreservingStringTest, NaN) {}

////////////////////////////////////////////////////////////////////////////////
// DoubleToString                                                              //
////////////////////////////////////////////////////////////////////////////////

TEST(DoubleToStringTest, Zero) {}

TEST(DoubleToStringTest, One) {}

TEST(DoubleToStringTest, MinusOne) {}

TEST(DoubleToStringTest, Billion) {}

TEST(DoubleToStringTest, Small) {}

TEST(DoubleToStringTest, Highest) {}

TEST(DoubleToStringTest, Lowest) {}

TEST(DoubleToStringTest, Precision) {}

////////////////////////////////////////////////////////////////////////////////
// DoubleToBitPreservingString                                                 //
////////////////////////////////////////////////////////////////////////////////

TEST(DoubleToBitPreservingStringTest, Zero) {}

TEST(DoubleToBitPreservingStringTest, NegativeZero) {}

TEST(DoubleToBitPreservingStringTest, One) {}

TEST(DoubleToBitPreservingStringTest, MinusOne) {}

TEST(DoubleToBitPreservingStringTest, Billion) {}

TEST(DoubleToBitPreservingStringTest, Small) {}

TEST(DoubleToBitPreservingStringTest, Highest) {}

TEST(DoubleToBitPreservingStringTest, Lowest) {}

TEST(DoubleToBitPreservingStringTest, SmallestDenormal) {}

TEST(DoubleToBitPreservingStringTest, BiggerDenormal) {}

TEST(DoubleToBitPreservingStringTest, LargestDenormal) {}

TEST(DoubleToBitPreservingStringTest, Subnormal_cafef00dbeef) {}

TEST(DoubleToBitPreservingStringTest, Subnormal_aaaaaaaaaaaaap) {}

TEST(DoubleToBitPreservingStringTest, Infinity) {}

TEST(DoubleToBitPreservingStringTest, NaN) {}

}  // namespace
}  // namespace tint::strconv