tap: add unconditional 'fail' call

This commit is contained in:
Danny Robson 2017-10-02 14:14:39 +11:00
parent d67a990de3
commit d03a248138

View File

@ -73,6 +73,12 @@ namespace util { namespace TAP {
void expect_throw (T&&, const char (&fmt)[N], Args&&...);
//---------------------------------------------------------------------
template <size_t N, typename ...Args>
void fail (const char (&fmt)[N], Args &&...args)
{
expect (false, fmt, std::forward<Args> (args)...);
}
void skip (const std::string &msg);
void todo (const std::string &msg);
void noop (void);