bug.cpp 580 B

12345678910111213141516171819
  1. // filesystem/bug/bug.cpp
  2. #include <boost/detail/lightweight_test_report.hpp>
  3. #include <boost/filesystem.hpp>
  4. namespace fs = boost::filesystem;
  5. int test_main(int, char*[]) // note name
  6. {
  7. BOOST_TEST(2 + 2 == 5); // one convertible-to-bool argument
  8. BOOST_TEST_EQ(4 + 4, 9); // two EqualityComparible arguments
  9. BOOST_TEST(fs::exists(".")); // should pass, so nothing reported
  10. return ::boost::report_errors(); // required
  11. }
  12. // Copyright Beman Dawes 2014
  13. // Distributed under the Boost Software License, Version 1.0.
  14. // www.boost.org/LICENSE_1_0.txt