tests.h File Reference

#include <string>
#include <sstream>
#include <wibble/tests/tut.h>
#include <wibble/tests/tut_reporter.h>
Include dependency graph for tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wibble::tests::Location

Namespaces

namespace  wibble
namespace  wibble::tests

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))
#define ensure_similar(x, y, prec)   wibble::tests::impl_ensure_similar(wibble::tests::Location(__FILE__, __LINE__, #x " == " #y), (x), (y), (prec))
#define inner_ensure_similar(x, y, prec)   wibble::tests::impl_ensure_similar(wibble::tests::Location(loc, __FILE__, __LINE__, #x " == " #y), (x), (y), (prec))

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)
template<class Actual , class Expected , class Precision >
void wibble::tests::impl_ensure_similar (const Location &loc, const Actual &actual, const Expected &expected, const Precision &precision)

Define Documentation

#define ensure (  )     wibble::tests::impl_ensure(wibble::tests::Location(__FILE__, __LINE__, #x), (x))
#define ensure_equals ( x,
 )     wibble::tests::impl_ensure_equals(wibble::tests::Location(__FILE__, __LINE__, #x " == " #y), (x), (y))
#define ensure_similar ( x,
y,
prec   )     wibble::tests::impl_ensure_similar(wibble::tests::Location(__FILE__, __LINE__, #x " == " #y), (x), (y), (prec))
#define inner_ensure (  )     wibble::tests::impl_ensure(wibble::tests::Location(loc, __FILE__, __LINE__, #x), (x))
#define inner_ensure_equals ( x,
 )     wibble::tests::impl_ensure_equals(wibble::tests::Location(loc, __FILE__, __LINE__, #x " == " #y), (x), (y))
#define inner_ensure_similar ( x,
y,
prec   )     wibble::tests::impl_ensure_similar(wibble::tests::Location(loc, __FILE__, __LINE__, #x " == " #y), (x), (y), (prec))
#define TESTGRP ( name   ) 
Value:
typedef test_group<name ## _shar> tg; \
typedef tg::object to; \
tg name ## _tg (#name);

Generated on Mon Jan 4 20:52:35 2010 for wibble by  doxygen 1.6.1