Add tests for failed()

This commit is contained in:
Peter Dimov
2020-08-27 17:49:20 +03:00
parent 999cf08bf5
commit 7d6da0ad91
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -30,5 +30,10 @@ int main()
#endif
// failed
BOOST_TEST( !cat.failed( 0 ) );
BOOST_TEST( cat.failed( 5 ) );
BOOST_TEST( cat.failed( -1 ) );
return boost::report_errors();
}