diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/libutil/fmt.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/libutil/fmt.cc b/tests/unit/libutil/fmt.cc index 383a688d3..90bcdfbe4 100644 --- a/tests/unit/libutil/fmt.cc +++ b/tests/unit/libutil/fmt.cc @@ -15,9 +15,9 @@ TEST(HintFmt, arg_count) ASSERT_EQ(HintFmt("%1%", "hello").str(), ANSI_MAGENTA "hello" ANSI_NORMAL); // Argument counts are detected at construction. - ASSERT_THROW(HintFmt("%s %s", 1), boost::io::too_few_args); + ASSERT_DEATH(HintFmt("%s %s", 1), "HintFmt received incorrect"); - ASSERT_THROW(HintFmt("%s", 1, 2), boost::io::too_many_args); + ASSERT_DEATH(HintFmt("%s", 1, 2), "HintFmt received incorrect"); } } |