2
0
mirror of https://github.com/boostorg/url.git synced 2026-01-23 06:02:17 +00:00
Files
url/test/unit/recycled_ptr.cpp
2022-08-01 17:49:14 -07:00

47 lines
886 B
C++

//
// Copyright (c) 2022 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/url
//
// Test that header file is self-contained.
#include <boost/url/recycled_ptr.hpp>
#include "test_suite.hpp"
#include <string>
namespace boost {
namespace urls {
struct recycled_ptr_test
{
void
testPtr()
{
{
recycled_ptr<std::string> sp;
sp->reserve(1000);
BOOST_TEST(sp->capacity() >= 1000);
}
{
recycled_ptr<std::string> sp;
BOOST_TEST(sp->capacity() >= 1000);
}
}
void
run()
{
}
};
TEST_SUITE(
recycled_ptr_test,
"boost.url.recycled_ptr");
} // urls
} // boost