]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/uuid/test/test_entropy_error.cpp
2 // Copyright (c) 2017 James E. King III
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // https://www.boost.org/LICENSE_1_0.txt)
8 // Entropy error class test
11 #include <boost/detail/lightweight_test.hpp>
12 #include <boost/uuid/entropy_error.hpp>
15 int main(int, char*[])
17 using namespace boost::uuids
;
19 entropy_error
err(6, "foo");
20 BOOST_TEST_EQ(6, err
.errcode());
21 BOOST_TEST_CSTR_EQ("foo", err
.what());
23 return boost::report_errors();