]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/test/unit/file_path_to_url_test.cpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / tools / quickbook / test / unit / file_path_to_url_test.cpp
1 /*=============================================================================
2 Copyright (c) 2015 Daniel James
3
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 =============================================================================*/
8
9 #include <boost/detail/lightweight_test.hpp>
10 #include "include_paths.hpp"
11
12 int main() {
13 using boost::filesystem::path;
14 using quickbook::file_path_to_url;
15
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")));
19
20 // TODO: Windows specific tests.
21
22 return boost::report_errors();
23 }