2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-23 16:12:10 +00:00
Files
url/test/unit/rfc/unreserved_chars.cpp
Vinnie Falco d5b001999c refactor params
fix #475, fix #470, fix #456, fix #455
2022-09-03 13:08:48 -07:00

47 lines
1.1 KiB
C++

//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot 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/rfc/unreserved_chars.hpp>
#include <boost/url/grammar/parse.hpp>
#include <boost/url/rfc/pct_encoded_rule.hpp>
#include "test_rule.hpp"
namespace boost {
namespace urls {
struct unreserved_chars_test
{
void
run()
{
// javadoc
{
result< pct_string_view > rv = grammar::parse( "Program%20Files", pct_encoded_rule( unreserved_chars ) );
(void)rv;
}
test_char_set(
unreserved_chars,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789"
"-._~");
}
};
TEST_SUITE(
unreserved_chars_test,
"boost.url.unreserved_chars");
} // urls
} // boost