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 6 // See http://www.boost.org/libs/test for the library home page. 7 8 //[example_code 9 #define BOOST_TEST_MODULE example 10 #include <boost/test/included/unit_test.hpp> 11 BOOST_AUTO_TEST_CASE(test_init)12BOOST_AUTO_TEST_CASE( test_init ) 13 { 14 int current_time = 0; // real call is required here 15 16 BOOST_TEST_MESSAGE( "Testing initialization :" ); 17 BOOST_TEST_MESSAGE( "Current time:" << current_time ); 18 } 19 BOOST_AUTO_TEST_CASE(test_update)20BOOST_AUTO_TEST_CASE( test_update ) 21 { 22 std::string field_name = "Volume"; 23 int value = 100; 24 25 BOOST_TEST_MESSAGE( "Testing update :" ); 26 BOOST_TEST_MESSAGE( "Update " << field_name << " with " << value ); 27 } 28 //] 29