TuTestMain.cpp 678 B

12345678910111213141516171819202122232425
  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2005-2006 Andreas Huber Doenni
  3. // Distributed under the Boost Software License, Version 1.0. (See accompany-
  4. // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //////////////////////////////////////////////////////////////////////////////
  6. #include "TuTest.hpp"
  7. #include <boost/test/test_tools.hpp>
  8. #include <stdexcept>
  9. int test_main( int, char* [] )
  10. {
  11. TuTest machine;
  12. machine.initiate();
  13. // unconsumed_event sanity check
  14. BOOST_REQUIRE_THROW( machine.process_event( EvY() ), std::runtime_error );
  15. machine.process_event( EvX() );
  16. return 0;
  17. }