// // 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 #include #include #include #include "test_suite.hpp" namespace boost { namespace urls { namespace grammar { struct optional_rule_test { void run() { // constexpr { constexpr auto r = optional_rule(token_rule(alpha_chars)); (void)r; } // javadoc { result< optional< string_view > > rv = parse( "", optional_rule( token_rule( alpha_chars ) ) ); (void)rv; } } }; TEST_SUITE( optional_rule_test, "boost.url.grammar.optional_rule"); } // grammar } // urls } // boost