# HG changeset patch # User jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1215953277 0 # Node ID 61d7a0a881bd167efd5e2359742d8474c36268ce # Parent 097996ee0b3df1edc6c0d35aff39992315f547b4 fixed sample_unit_test.cpp diff -r 097996ee0b3d -r 61d7a0a881bd doc/templatefiles/sample_unit_test.cpp --- a/doc/templatefiles/sample_unit_test.cpp Sun Jul 13 12:40:54 2008 +0000 +++ b/doc/templatefiles/sample_unit_test.cpp Sun Jul 13 12:47:57 2008 +0000 @@ -22,23 +22,19 @@ // Standard C++ library includes // 3rd party library includes -#include +#include "fife_unittest++.h" // FIFE includes // These includes are split up in two parts, separated by one empty line // First block: files included from the FIFE root src directory // Second block: files included from the same folder -using boost::unit_test::test_suite; using namespace FIFE; -void test_foo() { - Log::setLogLevel(Log::LEVEL_MAX); - BOOST_ERROR("Blank Test. Please provide an implementation"); +TEST(foo) { + CHECK("Blank Test for foo. Please provide an implementation"); } -test_suite* init_unit_test_suite(int argc, char* argv[]) { - test_suite* test = BOOST_TEST_SUITE("__NAME_HERE__ tests"); - test->add(BOOST_TEST_CASE(&test_foo), 0); - return test; +int main() { + return UnitTest::RunAllTests(); }