|
Boost-Commit : |
From: nesotto_at_[hidden]
Date: 2007-10-23 14:36:03
Author: nesotto
Date: 2007-10-23 14:36:03 EDT (Tue, 23 Oct 2007)
New Revision: 40367
URL: http://svn.boost.org/trac/boost/changeset/40367
Log:
added test for char array with nested null in response to Ticket #471
Text files modified:
trunk/libs/range/test/array.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: trunk/libs/range/test/array.cpp
==============================================================================
--- trunk/libs/range/test/array.cpp (original)
+++ trunk/libs/range/test/array.cpp 2007-10-23 14:36:03 EDT (Tue, 23 Oct 2007)
@@ -62,6 +62,8 @@
BOOST_CHECK_EQUAL( end( ca ), ca + size( ca ) );
BOOST_CHECK_EQUAL( empty( ca ),false );
+ const char A[] = "\0A";
+ BOOST_CHECK_EQUAL( boost::size(A), 3u );
}
using boost::unit_test::test_suite;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk