Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56171 - trunk/libs/conversion
From: Alexander.Nasonov_at_[hidden]
Date: 2009-09-13 10:58:35


Author: nasonov
Date: 2009-09-13 10:58:34 EDT (Sun, 13 Sep 2009)
New Revision: 56171
URL: http://svn.boost.org/trac/boost/changeset/56171

Log:
Add a test for uintmax_t.

Text files modified:
   trunk/libs/conversion/lexical_cast_test.cpp | 17 ++++++++++++-----
   1 files changed, 12 insertions(+), 5 deletions(-)

Modified: trunk/libs/conversion/lexical_cast_test.cpp
==============================================================================
--- trunk/libs/conversion/lexical_cast_test.cpp (original)
+++ trunk/libs/conversion/lexical_cast_test.cpp 2009-09-13 10:58:34 EDT (Sun, 13 Sep 2009)
@@ -78,6 +78,7 @@
 void test_conversion_from_to_long();
 void test_conversion_from_to_ulong();
 void test_conversion_from_to_intmax_t();
+void test_conversion_from_to_uintmax_t();
 #ifdef LCAST_TEST_LONGLONG
 void test_conversion_from_to_longlong();
 void test_conversion_from_to_ulonglong();
@@ -112,9 +113,10 @@
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_ushort));
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_int));
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_uint));
- suite->add(BOOST_TEST_CASE(&test_conversion_from_to_ulong));
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_long));
+ suite->add(BOOST_TEST_CASE(&test_conversion_from_to_ulong));
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_intmax_t));
+ suite->add(BOOST_TEST_CASE(&test_conversion_from_to_uintmax_t));
     #ifdef LCAST_TEST_LONGLONG
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_longlong));
     suite->add(BOOST_TEST_CASE(&test_conversion_from_to_ulonglong));
@@ -670,14 +672,14 @@
     test_conversion_from_to_integral<unsigned int>();
 }
 
-void test_conversion_from_to_ulong()
+void test_conversion_from_to_long()
 {
- test_conversion_from_to_integral<unsigned long>();
+ test_conversion_from_to_integral<long>();
 }
 
-void test_conversion_from_to_long()
+void test_conversion_from_to_ulong()
 {
- test_conversion_from_to_integral<long>();
+ test_conversion_from_to_integral<unsigned long>();
 }
 
 void test_conversion_from_to_intmax_t()
@@ -685,6 +687,11 @@
     test_conversion_from_to_integral<boost::intmax_t>();
 }
 
+void test_conversion_from_to_uintmax_t()
+{
+ test_conversion_from_to_integral<boost::uintmax_t>();
+}
+
 #if defined(BOOST_HAS_LONG_LONG)
 
 void test_conversion_from_to_longlong()


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