2
0
mirror of https://github.com/boostorg/url.git synced 2026-01-31 20:52:13 +00:00

path_view

This commit is contained in:
Vinnie Falco
2021-09-07 13:52:03 -07:00
parent d16e39bc44
commit aafe6d2d44
18 changed files with 520 additions and 415 deletions

62
test/path_view.cpp Normal file
View File

@@ -0,0 +1,62 @@
//
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/CPPAlliance/url
//
// Test that header file is self-contained.
#include <boost/url/path_view.hpp>
#include "test_suite.hpp"
#include <map>
#include <utility>
namespace boost {
namespace urls {
class path_view_test
{
public:
void
testIterator()
{
BOOST_TEST(
path_view::iterator() ==
path_view::iterator());
path_view p;
BOOST_TEST(p.begin() !=
path_view::iterator());
BOOST_TEST(p.end() !=
path_view::iterator());
BOOST_TEST(
p.begin() == p.end());
auto it = p.begin();
it = p.end();
BOOST_TEST(it == p.begin());
}
void
testContents()
{
auto p = parse_path(
"/");
}
void
run()
{
testIterator();
testContents();
}
};
TEST_SUITE(
path_view_test,
"boost.url.path_view");
} // urls
} // boost