#include <string>
#include <sstream>
#include <wibble/tests/tut.h>
#include <wibble/tests/tut_reporter.h>
Go to the source code of this file.
Namespaces | |
namespace | wibble |
namespace | wibble::tests |
Classes | |
class | wibble::tests::Location |
Defines | |
#define | TESTGRP(name) |
#define | ensure(x) wibble::tests::impl_ensure(wibble::tests::Location(__FILE__, __LINE__, #x), (x)) |
#define | inner_ensure(x) wibble::tests::impl_ensure(wibble::tests::Location(loc, __FILE__, __LINE__, #x), (x)) |
#define | ensure_equals(x, y) wibble::tests::impl_ensure_equals(wibble::tests::Location(__FILE__, __LINE__, #x " == " #y), (x), (y)) |
#define | inner_ensure_equals(x, y) wibble::tests::impl_ensure_equals(wibble::tests::Location(loc, __FILE__, __LINE__, #x " == " #y), (x), (y)) |
Functions | |
void | wibble::tests::impl_ensure (const Location &loc, bool res) |
template<class Actual, class Expected> | |
void | wibble::tests::impl_ensure_equals (const Location &loc, const Actual &actual, const Expected &expected) |
#define ensure | ( | x | ) | wibble::tests::impl_ensure(wibble::tests::Location(__FILE__, __LINE__, #x), (x)) |
#define ensure_equals | ( | x, | |||
y | ) | wibble::tests::impl_ensure_equals(wibble::tests::Location(__FILE__, __LINE__, #x " == " #y), (x), (y)) |
#define inner_ensure | ( | x | ) | wibble::tests::impl_ensure(wibble::tests::Location(loc, __FILE__, __LINE__, #x), (x)) |
#define inner_ensure_equals | ( | x, | |||
y | ) | wibble::tests::impl_ensure_equals(wibble::tests::Location(loc, __FILE__, __LINE__, #x " == " #y), (x), (y)) |
#define TESTGRP | ( | name | ) |
Value:
typedef test_group<name ## _shar> tg; \ typedef tg::object to; \ tg name ## _tg (#name);