auto_unit_test.hh File Reference

Boost.Test auto unit test compatibility across Boost V 1.33 and 1.34. More...

#include <iostream>
#include <boost/version.hpp>
#include "auto_unit_test.ih"
#include <boost/test/auto_unit_test.hpp>
#include "auto_unit_test.cti"

Include dependency graph for auto_unit_test.hh:

Go to the source code of this file.


Detailed Description

Boost.Test auto unit test compatibility across Boost V 1.33 and 1.34.

This header file will allows to consistently use the Boost Version 1.33 syntax for defining auto unit tests. If the available Boost version is 1.34, this file will automatically take care of any necessary workarounds.

So, instead of #include <boost/test/auto_unit_test.hpp>, you should always write

#include "../Utils/auto_unit_test.hh"
(with possibliy adjusted path).

Definition in file auto_unit_test.hh.


Namespaces

namespace   senf
namespace   senf::test

Defines

#define  HH_SENF_Utils_auto_unit_test_   1
#define  COMPILE_FAIL(n)   void n()
  Check for compile failure.
#define  SENF_CHECK_NO_THROW(expr)
  Show exception information.
#define  SENF_CHECK_EQUAL_COLLECTIONS(left_begin, left_end, right_begin, right_end)
  Check ranges for equality, writing char's as int's.
#define  SENF_AUTO_UNIT_TEST(name)
  Define new test case.
#define  SENF_CHECK_NOT_EQUAL(Left, Rigth)
  Check for non-equality.

Functions

template<class Iterator >
detail::NoCharIterator
< Iterator >::type 
senf::test::nocharIterator (Iterator i)

Define Documentation

#define
HH_SENF_Utils_auto_unit_test_   1

Definition at line 37 of file auto_unit_test.hh.