Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61747 - sandbox/SOC/2010/bits_and_ints/libs/integer/test
From: muriloufg_at_[hidden]
Date: 2010-05-03 16:11:20


Author: murilov
Date: 2010-05-03 16:11:20 EDT (Mon, 03 May 2010)
New Revision: 61747
URL: http://svn.boost.org/trac/boost/changeset/61747

Log:
Added some more tests in sign_extend_test.cpp
Text files modified:
   sandbox/SOC/2010/bits_and_ints/libs/integer/test/sign_extend_test.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: sandbox/SOC/2010/bits_and_ints/libs/integer/test/sign_extend_test.cpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/libs/integer/test/sign_extend_test.cpp (original)
+++ sandbox/SOC/2010/bits_and_ints/libs/integer/test/sign_extend_test.cpp 2010-05-03 16:11:20 EDT (Mon, 03 May 2010)
@@ -17,7 +17,7 @@
 // Macros to compact code
 #define SIGN_EXTEND_TEST(d, b, e) \
         BOOST_TEST(::boost::sign_extend(d, b) == e); \
- BOOST_TEST((::boost::static_sign_extend<int, d, b>::value) == e)
+ BOOST_TEST((::boost::static_sign_extend<intmax_t, d, b>::value) == e)
 
 
 // Main testing function
@@ -63,8 +63,9 @@
         SIGN_EXTEND_TEST(0x7FFFFFFF, 31, -1);
         
 #ifndef BOOST_NO_INT64_T
- //SIGN_EXTEND_TEST(0x1000000000000000l, 63, 0x1000000000000000);
- //SIGN_EXTEND_TEST(0x7FFFFFFFFF, 39, 0xffffffffffffffff);
+ SIGN_EXTEND_TEST(0x7FFFFFFFFF, 39, 0xFFFFFFFFFFFFFFFF);
+ SIGN_EXTEND_TEST(0x1000000000000000, 63, 0x1000000000000000);
+ SIGN_EXTEND_TEST(0x7FFFFFFFFFFFFFFF, 63, -0x1);
 #endif
         
         return boost::report_errors();


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