From d03a248138c4939430d0a7d269627711ac0e04e1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 2 Oct 2017 14:14:39 +1100 Subject: [PATCH] tap: add unconditional 'fail' call --- tap.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tap.hpp b/tap.hpp index 613468bf..c517837e 100644 --- a/tap.hpp +++ b/tap.hpp @@ -73,6 +73,12 @@ namespace util { namespace TAP { void expect_throw (T&&, const char (&fmt)[N], Args&&...); //--------------------------------------------------------------------- + template + void fail (const char (&fmt)[N], Args &&...args) + { + expect (false, fmt, std::forward (args)...); + } + void skip (const std::string &msg); void todo (const std::string &msg); void noop (void);