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))

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 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 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 TESTGRP ( name   ) 

Value:

typedef test_group<name ## _shar> tg; \
typedef tg::object to; \
tg name ## _tg (#name);


Generated on Fri Jun 12 05:15:43 2009 for wibble by  doxygen 1.5.9