Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Aug 21, 2020
1 parent 65f8667 commit 358b56b
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions test/empty_testname_failure_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,75 @@

// ill-formed test definitions..

IUTEST_TEST_STATICASSERT("testsuite_ must not be empty")
IUTEST(, Test)
namespace emptyname
{
}

IUTEST_TEST_STATICASSERT("testname_ must not be empty")
IUTEST(Test, )
{
}

}

namespace emptysuite
{

IUTEST_TEST_STATICASSERT("testsuite_ must not be empty")
IUTEST(, Test)
{
}

}

class BaseFixture : public ::iutest::Test
{
};

namespace emptyname
{

IUTEST_TEST_STATICASSERT("testname_ must not be empty")
IUTEST_F(BaseFixture, )
{
}

}

namespace emptysuite
{

IUTEST_TEST_STATICASSERT("testsuite_ must not be empty")
IUTEST_F(, Test)
{
}

}

#if IUTEST_HAS_TYPED_TEST_P

template<typename T>
class TypeParamTest : public ::iutest::Test {};

namespace emptyname
{

IUTEST_TEST_STATICASSERT("testname_ must not be empty")
IUTEST_TYPED_TEST_P(TypeParamTest, )
{
}

}

namespace emptysuite
{

IUTEST_TEST_STATICASSERT("testsuite_ must not be empty")
IUTEST_TYPED_TEST_P(, Test)
{
}

}

#endif

#ifdef UNICODE
Expand Down

0 comments on commit 358b56b

Please sign in to comment.