In-source preparation of release.
[libsex.git] / tests / TestMacros.cxx
blobd6a05fe83ca7c764bb6e27996cf86156d1470f47
1 #include <tests/TestMacros.hxx>
2 #include <tests/AutoCreatedException.hxx>
4 #include <libsex/utility.hxx>
6 void TestMacros::testInstantiation()
8 AutoCreatedException e
9 = libsex::formatted<AutoCreatedException>(
10 "foo.cxx", 42,
11 "bar", 5);
13 CPPUNIT_ASSERT_EQUAL(
14 std::string("foo.cxx:42: bar is 5"),
15 std::string(e.what()));