2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-27 06:52:14 +00:00
Files
json/test/json.cpp
Vinnie Falco 83778c5005 doc work
2019-11-14 15:56:03 -08:00

44 lines
1.4 KiB
C++

//
// 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/vinniefalco/json
//
// Test that header file is self-contained.
#include <boost/json.hpp>
#include <boost/beast/_experimental/unit_test/suite.hpp>
namespace boost {
namespace json {
struct zjson_test : public beast::unit_test::suite
{
void
run() override
{
log <<
"sizeof(alignof)\n"
" object == " << sizeof(object) << " (" << alignof(object) << ")\n"
" value_type == " << sizeof(object::value_type) << " (" << alignof(object::value_type) << ")\n"
" array == " << sizeof(array) << " (" << alignof(array) << ")\n"
" string == " << sizeof(string) << " (" << alignof(string) << ")\n"
" value == " << sizeof(value) << " (" << alignof(value) << ")\n"
" serializer == " << sizeof(serializer) << "\n"
" number_parser == " << sizeof(detail::number_parser) << "\n"
" basic_parser == " << sizeof(basic_parser) << "\n"
" parser == " << sizeof(parser) << "\n"
<< std::endl;
;
pass();
}
};
BEAST_DEFINE_TESTSUITE(boost,json,zjson);
} // json
} // boost