// // 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 #include "test_suite.hpp" #include "test_bnf.hpp" #include namespace boost { namespace urls { class uri_bnf_test { public: void run() { using T = uri_bnf; bad(""); bad(":"); bad("http://##"); good("http:"); good("http:x"); good("http:x/"); good("http:x/x"); good("http:x//"); good("http://"); good("http://x"); good("http://x.y.z"); good("http://x.y.z/"); good("http://x.y.z/?"); good("http://x.y.z/?a"); good("http://x.y.z/?a="); good("http://x.y.z/?a=b"); good("http://x.y.z/?a=b&c=d"); good("http://x.y.z/?a=b&c=d&"); good("http://x.y.z/?a=b&c=d&#"); good("http://x.y.z/?a=b&c=d"); good("http://x.y.z/?a=b&c=d "); good("http://x.y.z/?a=b&c=d %23"); good("http://x.y.z/?a=b&c=d %23%20"); } }; TEST_SUITE( uri_bnf_test, "boost.url.uri_bnf"); } // urls } // boost