unit_test_example_08.cpp 760 B

123456789101112131415161718192021222324
  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. // See http://www.boost.org/libs/test for the library home page.
  6. // Boost.Test
  7. #define BOOST_TEST_MODULE Unit_test_example_08
  8. #include <boost/test/unit_test.hpp>
  9. //____________________________________________________________________________//
  10. // this way we could specify a number of expected failures in automatically registered test case
  11. BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( my_test1, 1 )
  12. BOOST_AUTO_TEST_CASE( my_test1 )
  13. {
  14. BOOST_TEST( 2 == 1 );
  15. }
  16. //____________________________________________________________________________//
  17. // EOF