]>
Commit | Line | Data |
---|---|---|
1 | // | |
2 | // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com) | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | ||
8 | // Test that header file is self-contained. | |
9 | #include <beast/core/to_string.hpp> | |
10 | ||
11 | #include <beast/unit_test/suite.hpp> | |
12 | #include <boost/asio/buffer.hpp> | |
13 | ||
14 | namespace beast { | |
15 | ||
16 | class to_string_test : public beast::unit_test::suite | |
17 | { | |
18 | public: | |
19 | void run() | |
20 | { | |
21 | BEAST_EXPECT(to_string(boost::asio::const_buffers_1("x", 1)) == "x"); | |
22 | } | |
23 | }; | |
24 | ||
25 | BEAST_DEFINE_TESTSUITE(to_string,core,beast); | |
26 | ||
27 | } // beast | |
28 |