diff --git a/tap.hpp b/tap.hpp index 96e1dc17..cf952bda 100644 --- a/tap.hpp +++ b/tap.hpp @@ -67,6 +67,15 @@ namespace util::TAP { } + /////////////////////////////////////////////////////////////////////// + template + void + expect_mod (ValueA &&a, ValueB &&b, const char (&fmt)[N], Args &&...args) + { + return expect (a % b == 0, fmt, std::forward (args)...); + } + + /////////////////////////////////////////////////////////////////////// template void