File: Exception.cpp

package info (click to toggle)
odil 0.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,212 kB
  • sloc: cpp: 54,791; python: 3,963; javascript: 464; xml: 182; makefile: 94
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");
}