File: Exception.cpp

package info (click to toggle)
odil 0.12.2-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,320 kB
  • sloc: cpp: 55,035; python: 3,971; javascript: 460; xml: 182; makefile: 98
file content (10 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#define BOOST_TEST_MODULE Exception
#include <boost/test/unit_test.hpp>

#include "odil/Exception.h"

BOOST_AUTO_TEST_CASE(Exception)
{
    odil::Exception const exception("foo");
    BOOST_REQUIRE_EQUAL(exception.what(), "foo");
}