1 // (C) Copyright Gennadiy Rozental 2005-2014. 2 // Distributed under the Boost Software License, Version 1.0. 3 // (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 // See http://www.boost.org/libs/test for the library home page. 7 8 // Boost.Test 9 #define BOOST_TEST_MODULE Unit_test_example_08 10 #include <boost/test/unit_test.hpp> 11 12 //____________________________________________________________________________// 13 14 // this way we could specify a number of expected failures in automatically registered test case 15 BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( my_test1, 1 ) 16 BOOST_AUTO_TEST_CASE(my_test1)17BOOST_AUTO_TEST_CASE( my_test1 ) 18 { 19 BOOST_TEST( 2 == 1 ); 20 } 21 22 //____________________________________________________________________________// 23 24 // EOF 25