#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>
{ … };
TEST_P(FloatScientificTest, FloatIdentified)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
FloatFractionParams;
class FloatFractionTest : public FloatTest, public testing::WithParamInterface<FloatFractionParams>
{ … };
TEST_P(FloatFractionTest, FloatIdentified)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(FloatTest, FractionScientific)
{ … }
}