mirror of
https://github.com/boostorg/url.git
synced 2026-01-21 17:32:21 +00:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
//
|
|
// 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/boostorg/url
|
|
//
|
|
|
|
// Test that header file is self-contained.
|
|
#include <boost/url/grammar/alnum_chars.hpp>
|
|
|
|
#include <boost/url/grammar/parse.hpp>
|
|
#include <boost/url/grammar/token_rule.hpp>
|
|
|
|
#include "test_rule.hpp"
|
|
|
|
namespace boost {
|
|
namespace urls {
|
|
namespace grammar {
|
|
|
|
struct alnum_chars_test
|
|
{
|
|
void
|
|
run()
|
|
{
|
|
// javadoc
|
|
{
|
|
system::result< core::string_view > rv = parse( "Johnny42", token_rule( alnum_chars ) );
|
|
|
|
(void)rv;
|
|
}
|
|
|
|
test_char_set(
|
|
alnum_chars,
|
|
"0123456789"
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
"abcdefghijklmnopqrstuvwxyz");
|
|
}
|
|
};
|
|
|
|
TEST_SUITE(
|
|
alnum_chars_test,
|
|
"boost.url.grammar.alnum_chars");
|
|
|
|
} // grammar
|
|
} // urls
|
|
} // boost
|