mirror of
https://github.com/boostorg/json.git
synced 2026-02-12 12:12:15 +00:00
Add block_storage default storage
This commit is contained in:
31
test/fixed_storage.cpp
Normal file
31
test/fixed_storage.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// Copyright (c) 2018-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/vinniefalco/json
|
||||
//
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include <boost/json/fixed_storage.hpp>
|
||||
|
||||
#include <boost/beast/_experimental/unit_test/suite.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace json {
|
||||
|
||||
class fixed_storage_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void run() override
|
||||
{
|
||||
make_storage<fixed_storage>(65536);
|
||||
pass();
|
||||
}
|
||||
};
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(boost,json,fixed_storage);
|
||||
|
||||
} // json
|
||||
} // boost
|
||||
Reference in New Issue
Block a user