2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-14 01:02:17 +00:00
Files
url/test/unit/rfc/ipv_future_rule.cpp
2022-01-04 11:42:12 -08:00

45 lines
874 B
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/ipv_future_rule.hpp>
#include "test_suite.hpp"
#include "test_rule.hpp"
namespace boost {
namespace urls {
class ipv_future_rule_test
{
public:
void
run()
{
using T = ipv_future_rule;
bad<T>("v");
bad<T>("v1");
bad<T>("v1.");
bad<T>("v1.@$");
bad<T>("v.1");
bad<T>("w1.1");
good<T>("v1.0");
good<T>("v1.minor");
}
};
TEST_SUITE(
ipv_future_rule_test,
"boost.url.ipv_future_rule");
} // urls
} // boost