tap: add expect_mod test
This commit is contained in:
parent
7e11707c39
commit
825ca4a7e7
9
tap.hpp
9
tap.hpp
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user