]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/beast/test/beast/core/detail/varint.cpp
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
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)
8 // Test that header file is self-contained.
9 #include <boost/beast/core/detail/varint.hpp>
11 #include <boost/beast/unit_test/suite.hpp>
17 class varint_test
: public beast::unit_test::suite
28 BOOST_ASSERT(sizeof(buf
) >= varint_size(n0
));
32 auto n
= varint_read(it
);
33 BEAST_EXPECT(n
== n0
);
49 BEAST_DEFINE_TESTSUITE(beast
,core
,varint
);