tuple/value: correct the test case values
This commit is contained in:
parent
40694c4138
commit
eac5957f60
@ -43,7 +43,7 @@ main (void)
|
|||||||
);
|
);
|
||||||
|
|
||||||
tap.expect (
|
tap.expect (
|
||||||
!cruft::tuple::value::all (std::tuple<bool,int> (true, 1)),
|
!cruft::tuple::value::all (std::tuple<bool,int> (true, 0)),
|
||||||
"tuple::all fails"
|
"tuple::all fails"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ main (void)
|
|||||||
);
|
);
|
||||||
|
|
||||||
tap.expect (
|
tap.expect (
|
||||||
cruft::tuple::value::none (std::tuple<bool,int> (false, 0)),
|
!cruft::tuple::value::none (std::tuple<bool,int> (false, 1)),
|
||||||
"tuple::none fails"
|
"tuple::none fails"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -127,9 +127,9 @@ namespace cruft::tuple::value {
|
|||||||
bool
|
bool
|
||||||
none (TupleT &&val)
|
none (TupleT &&val)
|
||||||
{
|
{
|
||||||
return none (
|
return all (
|
||||||
std::forward<TupleT> (val),
|
std::forward<TupleT> (val),
|
||||||
[] (auto const &i) { return bool (i); }
|
[] (auto const &i) { return !bool (i); }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user