mirror of
https://github.com/boostorg/core.git
synced 2025-11-30 14:19:38 +01:00
more compared code following suggestion from Glen Fernandes and testing expected failures
This commit is contained in:
18
test/lightweight_test_fail10.cpp
Normal file
18
test/lightweight_test_fail10.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Negative test for BOOST_TEST_EQ on const char*
|
||||
//
|
||||
// Copyright (c) 2017 Hans Dembinski
|
||||
//
|
||||
// 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
|
||||
//
|
||||
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ("xab"+1 , "yab"+1); // compares addresses, not cstrings
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in New Issue
Block a user