Version: SMASH-2.0
unittest.h
Go to the documentation of this file.
1 
229 #define TEST(function_name)
230 
238 #define TEST_CATCH(function_name, ExceptionType)
239 
244 #define TEST_TYPES(T, test_name, typelist)
245 
249 #define VERIFY(condition)
250 
254 #define COMPARE(test_value, reference)
255 
264 #define COMPARE_ABSOLUTE_ERROR(test_value, reference, allowed_difference)
265 
283 #define COMPARE_RELATIVE_ERROR(test_value, reference, \
284  allowed_relative_difference)
285 
332 #define FUZZY_COMPARE(test_value, reference)
333 
337 #define FAIL()
338 
339 namespace vir {
340 namespace test {
341 
345 template <class F>
346 inline void expect_assert_failure(F &&f);
347 
366 inline void expect_failure();
367 
368 } // namespace test
369 } // namespace vir
370 
vir
Definition: unittest.h:339
vir::test::expect_assert_failure
void expect_assert_failure(F &&f)
Pass code that should fail an assertion to this function.
vir::test::expect_failure
void expect_failure()
Use this to mark that the failure of a following test is expected.