path_test.cpp 741 B

12345678910111213141516171819202122232425
  1. // (C) Copyright Daniel James 2011.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  4. // See http://www.boost.org/libs/iostreams for documentation.
  5. #include <boost/iostreams/detail/path.hpp>
  6. #include <boost/filesystem/path.hpp>
  7. #include <boost/test/test_tools.hpp>
  8. #include <boost/test/unit_test.hpp>
  9. void path_test()
  10. {
  11. boost::filesystem::path orig("a/b");
  12. boost::iostreams::detail::path p(orig);
  13. p = orig;
  14. }
  15. boost::unit_test::test_suite* init_unit_test_suite(int, char* [])
  16. {
  17. boost::unit_test::test_suite* test = BOOST_TEST_SUITE("mapped_file test");
  18. test->add(BOOST_TEST_CASE(&path_test));
  19. return test;
  20. }