example21.run.cpp 801 B

12345678910111213141516171819202122232425262728
  1. // (C) Copyright Gennadiy Rozental 2011-2015.
  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. //[example_code
  7. #define BOOST_TEST_MODULE example
  8. #include <boost/test/included/unit_test.hpp>
  9. BOOST_AUTO_TEST_CASE( test_init )
  10. {
  11. int current_time = 0; // real call is required here
  12. BOOST_TEST_MESSAGE( "Testing initialization :" );
  13. BOOST_TEST_MESSAGE( "Current time:" << current_time );
  14. }
  15. BOOST_AUTO_TEST_CASE( test_update )
  16. {
  17. std::string field_name = "Volume";
  18. int value = 100;
  19. BOOST_TEST_MESSAGE( "Testing update :" );
  20. BOOST_TEST_MESSAGE( "Update " << field_name << " with " << value );
  21. }
  22. //]