Mercurial > fife-parpg
changeset 49:61d7a0a881bd
fixed sample_unit_test.cpp
author | jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 13 Jul 2008 12:47:57 +0000 |
parents | 097996ee0b3d |
children | 9d0a21184c13 |
files | doc/templatefiles/sample_unit_test.cpp |
diffstat | 1 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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 <boost/test/unit_test.hpp> +#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(); }