tap: add expect_valid test
This commit is contained in:
parent
3a4a7bf1d8
commit
d1866d9b70
15
tap.hpp
15
tap.hpp
@ -62,6 +62,21 @@ namespace cruft::TAP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
template <typename ValueT, size_t N, typename ...ArgsT>
|
||||||
|
decltype(auto)
|
||||||
|
expect_valid (ValueT &&value, char const (&fmt)[N], ArgsT &&...args)
|
||||||
|
{
|
||||||
|
return expect (
|
||||||
|
debug::is_valid (
|
||||||
|
std::forward<ValueT> (value)
|
||||||
|
),
|
||||||
|
fmt,
|
||||||
|
std::forward<ArgsT> (args)...
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
template <typename ValueA, typename ValueB, std::size_t N, typename ...Args>
|
template <typename ValueA, typename ValueB, std::size_t N, typename ...Args>
|
||||||
decltype(auto)
|
decltype(auto)
|
||||||
|
Loading…
Reference in New Issue
Block a user