uuid/test/test_entropy_error.cpp
tinko92 24e3e0db36 Fix for typo (LICENCE) and for https links to license (#103)
* Fix Typo in link to License.
* Changed links to https.
2019-04-22 08:56:05 -04:00

25 lines
555 B
C++

//
// Copyright (c) 2017 James E. King III
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
// Entropy error class test
//
#include <boost/detail/lightweight_test.hpp>
#include <boost/uuid/entropy_error.hpp>
#include <string>
int main(int, char*[])
{
using namespace boost::uuids;
entropy_error err(6, "foo");
BOOST_TEST_EQ(6, err.errcode());
BOOST_TEST_CSTR_EQ("foo", err.what());
return boost::report_errors();
}