tap: add expect_mod test

This commit is contained in:
Danny Robson 2018-03-02 12:16:05 +11:00
parent 7e11707c39
commit 825ca4a7e7

View File

@ -67,6 +67,15 @@ namespace util::TAP {
}
///////////////////////////////////////////////////////////////////////
template <typename ValueA, typename ValueB, std::size_t N, typename ...Args>
void
expect_mod (ValueA &&a, ValueB &&b, const char (&fmt)[N], Args &&...args)
{
return expect (a % b == 0, fmt, std::forward<Args> (args)...);
}
///////////////////////////////////////////////////////////////////////
template <typename T, typename U, typename ...Args, size_t N>
void