tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
assert.h File Reference

Contains tunit::assert class. More...

#include "base_assert.h"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <exception>
#include <functional>
#include <iterator>
#include <memory>
#include <string>
Include dependency graph for assert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tunit::assert
 The assert class contains a collection of static methods that implement the most common assertions used in tUnit. More...
 

Namespaces

 tunit
 The tunit namespace contains a unit test library.
 

Macros

#define abort_()   abort(line_info_)
 
#define are_equal_(...)   __CMD_ASSERT_ARGS(are_equal, __VA_ARGS__)
 
#define are_not_equal_(...)   __CMD_ASSERT_ARGS(are_not_equal, __VA_ARGS__)
 
#define are_not_same_(...)   __CMD_ASSERT_ARGS(are_not_same, __VA_ARGS__)
 
#define are_same_(...)   __CMD_ASSERT_ARGS(are_same, __VA_ARGS__)
 
#define contains_(...)   __CMD_ASSERT_ARGS(contains, __VA_ARGS__)
 
#define does_not_throw_(...)   __CMD_ASSERT_ARGS(does_not_throw, __VA_ARGS__)
 
#define fail_()   base_assert::fail(line_info_)
 
#define ignore_()   ignore(line_info_)
 
#define is_empty_(...)   __CMD_ASSERT_ARGS(is_empty, __VA_ARGS__)
 
#define is_false_(...)   __CMD_ASSERT_ARGS(is_false, __VA_ARGS__)
 
#define is_greater_(...)   __CMD_ASSERT_ARGS(is_greater, __VA_ARGS__)
 
#define is_greater_or_equal_(...)   __CMD_ASSERT_ARGS(is_greater_or_equal, __VA_ARGS__)
 
#define is_instance_of_(Type, ...)   __CMD_ASSERT_ARGS(is_instance_of<Type>, __VA_ARGS__)
 
#define is_less_(...)   __CMD_ASSERT_ARGS(is_less, __VA_ARGS__)
 
#define is_less_or_equal_(...)   __CMD_ASSERT_ARGS(is_less_or_equal, __VA_ARGS__)
 
#define is_NaN_(...)   __CMD_ASSERT_ARGS(is_NaN, __VA_ARGS__)
 
#define is_negative_(...)   __CMD_ASSERT_ARGS(is_negative, __VA_ARGS__)
 
#define is_not_empty_(...)   __CMD_ASSERT_ARGS(is_not_empty, __VA_ARGS__)
 
#define is_not_instance_of_(Type, ...)   __CMD_ASSERT_ARGS(is_not_instance_of<Type>, __VA_ARGS__)
 
#define is_not_null_(...)   __CMD_ASSERT_ARGS(is_not_null, __VA_ARGS__)
 
#define is_not_zero_(...)   __CMD_ASSERT_ARGS(is_not_zero, __VA_ARGS__)
 
#define is_null_(...)   __CMD_ASSERT_ARGS(is_null, __VA_ARGS__)
 
#define is_positive_(...)   __CMD_ASSERT_ARGS(is_positive, __VA_ARGS__)
 
#define is_true_(...)   __CMD_ASSERT_ARGS(is_true, __VA_ARGS__)
 
#define is_zero_(...)   __CMD_ASSERT_ARGS(is_zero, __VA_ARGS__)
 
#define succeed_()   succeed(line_info_)
 
#define throws_(TException, ...)   __CMD_ASSERT_ARGS(throws<TException>, __VA_ARGS__)
 
#define throws_any_(...)   __CMD_ASSERT_ARGS(throws_any, __VA_ARGS__)
 

Detailed Description

Contains tunit::assert class.