Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions llvm/unittests/Support/FormatVariadicTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,16 +710,6 @@ TEST(FormatVariadicTest, FormatFilterRange) {
EXPECT_EQ("1, 2, 3", formatv("{0}", Range).str());
}

#ifdef NDEBUG // Disable the test in debug builds where it will assert.
TEST(FormatVariadicTest, Validate) {
std::string Str = formatv("{0}", 1, 2).str();
EXPECT_THAT(Str, HasSubstr("Unexpected number of arguments"));

Str = formatv("{0} {2}", 1, 2, 3).str();
EXPECT_THAT(Str, HasSubstr("eplacement indices have holes"));
}
#endif // NDEBUG

namespace {

enum class Base { First };
Expand Down