2
0
mirror of https://github.com/boostorg/url.git synced 2026-01-25 06:42:28 +00:00
Files
url/test/unit/grammar/alpha_chars.cpp
Vinnie Falco f46a2a9b21 Tidy tests
2022-08-03 09:52:31 -07:00

48 lines
990 B
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/CPPAlliance/url
//
// Test that header file is self-contained.
#include <boost/url/grammar/alpha_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 alpha_chars_test
{
void
run()
{
// javadoc
{
result< string_view > rv = parse( "JohnDoe", token_rule( alpha_chars ) );
(void)rv;
}
test_char_set(
alpha_chars,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz");
}
};
TEST_SUITE(
alpha_chars_test,
"boost.url.grammar.alpha_chars");
} // grammar
} // urls
} // boost