Ticket #5235: uuid_test.patch
File uuid_test.patch, 3.8 KB (added by , 12 years ago) |
---|
-
libs/uuid/test/test_uuid.cpp
12 12 #include <boost/uuid/uuid.hpp> 13 13 #include <boost/uuid/uuid_io.hpp> 14 14 #include <boost/detail/lightweight_test.hpp> 15 #include "lightweight_test_ex.hpp"16 15 #include <boost/functional/hash.hpp> 17 16 #include <boost/current_function.hpp> 18 17 -
libs/uuid/test/lightweight_test_ex.hpp
1 // (C) Copyright Andy Tompkins 2010. Permission to copy, use, modify, sell and2 // distribute this software is granted provided this copyright notice appears3 // in all copies. This software is provided "as is" without express or implied4 // warranty, and with no claim as to its suitability for any purpose.5 6 // Distributed under the Boost Software License, Version 1.0. (See7 // accompanying file LICENSE_1_0.txt or copy at8 // http://www.boost.org/LICENSE_1_0.txt)9 10 // libs/uuid/test/lightweight_test_ex.hpp -------------------------------//11 12 // BOOST_TEST_NE(expr1, expr2)13 14 #ifndef BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP15 #define BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP16 17 #include <boost/detail/lightweight_test.hpp>18 19 namespace boost {20 namespace detail {21 22 template<class T, class U> inline void test_ne_impl( char const * expr1, char const * expr2, char const * file, int line, char const * function, T const & t, U const & u )23 {24 if( t != u )25 {26 }27 else28 {29 std::cerr << file << "(" << line << "): test '" << expr1 << " != " << expr230 << "' failed in function '" << function << "': "31 << "'" << t << "' == '" << u << "'" << std::endl;32 ++test_errors();33 }34 }35 36 }} // namespace boost::detail37 38 #define BOOST_TEST_NE(expr1,expr2) ( ::boost::detail::test_ne_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )39 40 #endif //BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP -
libs/uuid/test/test_tagging.cpp
12 12 #include <boost/uuid/uuid.hpp> 13 13 #include <boost/uuid/uuid_generators.hpp> 14 14 #include <boost/detail/lightweight_test.hpp> 15 #include "lightweight_test_ex.hpp"16 15 17 16 class object 18 17 { -
libs/uuid/test/test_random_generator.cpp
13 13 #include <boost/uuid/random_generator.hpp> 14 14 #include <boost/uuid/uuid_io.hpp> 15 15 #include <boost/detail/lightweight_test.hpp> 16 #include "lightweight_test_ex.hpp"17 16 #include <boost/random.hpp> 18 17 19 18 template <typename RandomUuidGenerator> -
libs/uuid/test/test_uuid_class.cpp
14 14 #include <boost/uuid/uuid_io.hpp> 15 15 16 16 #include <boost/detail/lightweight_test.hpp> 17 #include "lightweight_test_ex.hpp"18 17 19 18 class uuid_class : public boost::uuids::uuid 20 19 { -
libs/uuid/test/test_sha1.cpp
11 11 12 12 #include <boost/uuid/sha1.hpp> 13 13 #include <boost/detail/lightweight_test.hpp> 14 #include "lightweight_test_ex.hpp"15 14 #include <algorithm> 16 15 #include <cstring> 17 16 #include <cstddef>