chromium/third_party/angle/src/tests/preprocessor_tests/number_test.cpp

//
// Copyright 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

#include <tuple>

#include "PreprocessorTest.h"
#include "compiler/preprocessor/Token.h"

namespace angle
{

#define CLOSED_RANGE(x, y)

class InvalidNumberTest : public SimplePreprocessorTest,
                          public testing::WithParamInterface<const char *>
{};

TEST_P(InvalidNumberTest, InvalidNumberIdentified)
{}

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

IntegerParams;
class IntegerTest : public SimplePreprocessorTest, public testing::WithParamInterface<IntegerParams>
{};

TEST_P(IntegerTest, Identified)
{}

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

class FloatTest : public SimplePreprocessorTest
{};

FloatScientificParams;
class FloatScientificTest : public FloatTest,
                            public testing::WithParamInterface<FloatScientificParams>
{};

// This test covers floating point numbers of form [0-9][eE][+-]?[0-9].
TEST_P(FloatScientificTest, FloatIdentified)
{}

INSTANTIATE_TEST_SUITE_P();

FloatFractionParams;
class FloatFractionTest : public FloatTest, public testing::WithParamInterface<FloatFractionParams>
{};

// This test covers floating point numbers of form [0-9]"." and [0-9]?"."[0-9].
TEST_P(FloatFractionTest, FloatIdentified)
{}

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

// In the tests above we have tested individual parts of a float separately.
// This test has all parts of a float.
TEST_F(FloatTest, FractionScientific)
{}

}  // namespace angle