mirror of
https://github.com/boostorg/json.git
synced 2026-02-01 20:42:17 +00:00
to_string is in its own header
This commit is contained in:
47
test/to_string.cpp
Normal file
47
test/to_string.cpp
Normal file
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// 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/json
|
||||
//
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include <boost/json/to_string.hpp>
|
||||
|
||||
#include <boost/json/parse.hpp>
|
||||
|
||||
#include "test_suite.hpp"
|
||||
|
||||
namespace boost {
|
||||
namespace json {
|
||||
|
||||
class to_string_test
|
||||
{
|
||||
public:
|
||||
void
|
||||
testToString()
|
||||
{
|
||||
BOOST_TEST(
|
||||
to_string(parse("[1,2,3]")) == "[1,2,3]");
|
||||
}
|
||||
|
||||
void
|
||||
testOstream()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
{
|
||||
testToString();
|
||||
testOstream();
|
||||
}
|
||||
};
|
||||
|
||||
TEST_SUITE(to_string_test, "boost.json.to_string");
|
||||
|
||||
} // json
|
||||
} // boost
|
||||
|
||||
Reference in New Issue
Block a user