]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/test/unit/file_path_to_url_test.cpp
1 /*=============================================================================
2 Copyright (c) 2015 Daniel James
4 Use, modification and distribution is subject to the Boost Software
5 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
9 #include <boost/detail/lightweight_test.hpp>
10 #include "include_paths.hpp"
13 using boost::filesystem::path
;
14 using quickbook::file_path_to_url
;
16 BOOST_TEST_EQ("a/b", file_path_to_url(path("a/b")));
17 BOOST_TEST_EQ("../a/b", file_path_to_url(path("../a/b")));
18 BOOST_TEST_EQ("A%20B%2bC%2520", file_path_to_url(path("A B+C%20")));
20 // TODO: Windows specific tests.
22 return boost::report_errors();