/usr/include/boost/test/tools
NameSizeModeActions
detail/-0755rm
old/-0755rm
assertion.hpp144270644editdlrm
assertion_result.hpp28400644editdlrm
collection_comparison_op.hpp183540644editdlrm
context.hpp36910644editdlrm
cstring_comparison_op.hpp43420644editdlrm
floating_point_comparison.hpp116360644editdlrm
fpc_op.hpp108860644editdlrm
fpc_tolerance.hpp30010644editdlrm
interface.hpp185100644editdlrm
output_test_stream.hpp39520644editdlrm
Edit: /usr/include/boost/test/tools/cstring_comparison_op.hpp (4342B)
// (C) Copyright Gennadiy Rozental 2001. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // //!@file //!@brief C string comparison with enhanced reporting // *************************************************************************** #ifndef BOOST_TEST_TOOLS_CSTRING_COMPARISON_OP_HPP_050815GER #define BOOST_TEST_TOOLS_CSTRING_COMPARISON_OP_HPP_050815GER // Boost.Test #include #include #include // Boost #include #include //____________________________________________________________________________// namespace boost { namespace test_tools { namespace assertion { namespace op { // ************************************************************************** // // ************** string_compare ************** // // ************************************************************************** // #define DEFINE_CSTRING_COMPARISON( oper, name, rev, name_inverse ) \ template \ struct name::value \ && unit_test::is_cstring_comparable::value) \ >::type > \ { \ typedef typename unit_test::deduce_cstring_transform::type lhs_char_type; \ typedef typename unit_test::deduce_cstring_transform::type rhs_char_type; \ public: \ typedef assertion_result result_type; \ typedef name_inverse inverse; \ \ typedef name< \ typename lhs_char_type::value_type, \ typename rhs_char_type::value_type> elem_op; \ \ static bool \ eval( Lhs const& lhs, Rhs const& rhs) \ { \ return lhs_char_type(lhs) oper rhs_char_type(rhs); \ } \ \ template \ static void \ report( std::ostream& ostr, \ PrevExprType const& lhs, \ Rhs const& rhs) \ { \ lhs.report( ostr ); \ ostr << revert() \ << tt_detail::print_helper( rhs ); \ } \ \ static char const* forward() \ { return " " #oper " "; } \ static char const* revert() \ { return " " #rev " "; } \ }; \ /**/ BOOST_TEST_FOR_EACH_COMP_OP( DEFINE_CSTRING_COMPARISON ) #undef DEFINE_CSTRING_COMPARISON //____________________________________________________________________________// } // namespace op } // namespace assertion } // namespace test_tools } // namespace boost #include #endif // BOOST_TEST_TOOLS_CSTRING_COMPARISON_OP_HPP_050815GER