From bbd746d2ac36e53785b6a3d527401a776673a578 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 16 Nov 2013 16:25:26 +0000 Subject: [PATCH] Slightly modify one of the lexical_cast tests to see what is produced by the `to_str` method with libc++. [SVN r86721] --- test/lexical_cast_integral_types_test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/lexical_cast_integral_types_test.cpp b/test/lexical_cast_integral_types_test.cpp index 4755071..e537a4b 100644 --- a/test/lexical_cast_integral_types_test.cpp +++ b/test/lexical_cast_integral_types_test.cpp @@ -367,7 +367,17 @@ void test_conversion_from_to_integral_for_locale() BOOST_CHECK( lexical_cast("30000") == static_cast(30000) ); } + test_conversion_from_integral_to_integral(); + + // This is a part of test_conversion_from_integral_to_string('0') method, + // but with BOOST_CHECK_EQUAL instead of BOOST_CHECK. It is required to see + // what is produced by the to_str(t) method in situations when result + // is different. BOOST_CHECK does not work with wchat_t. + typedef std::numeric_limits limits; + T t = (limits::min)(); + BOOST_CHECK_EQUAL(lexical_cast(t), to_str(t)); + test_conversion_from_integral_to_string('0'); test_conversion_from_string_to_integral('0'); #if !defined(BOOST_LCAST_NO_WCHAR_T)