test_entropy_error.cpp 555 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright (c) 2017 James E. King III
  3. //
  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)
  7. //
  8. // Entropy error class test
  9. //
  10. #include <boost/detail/lightweight_test.hpp>
  11. #include <boost/uuid/entropy_error.hpp>
  12. #include <string>
  13. int main(int, char*[])
  14. {
  15. using namespace boost::uuids;
  16. entropy_error err(6, "foo");
  17. BOOST_TEST_EQ(6, err.errcode());
  18. BOOST_TEST_CSTR_EQ("foo", err.what());
  19. return boost::report_errors();
  20. }