Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58942 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-12 11:14:39


Author: hkaiser
Date: 2010-01-12 11:14:39 EST (Tue, 12 Jan 2010)
New Revision: 58942
URL: http://svn.boost.org/trac/boost/changeset/58942

Log:
Spirit: added another test case for unsigned integer generators
Text files modified:
   trunk/libs/spirit/test/karma/int_numerics.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/karma/int_numerics.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/int_numerics.cpp (original)
+++ trunk/libs/spirit/test/karma/int_numerics.cpp 2010-01-12 11:14:39 EST (Tue, 12 Jan 2010)
@@ -287,6 +287,10 @@
         BOOST_TEST(test_delimited("1234 ", oct, 01234, char_(' ')));
         BOOST_TEST(test_delimited("11110000 ", bin, 0xf0, char_(' ')));
 
+ // test unsigned generator with signed integral value
+ BOOST_TEST(test("ff", hex, (char)0xff));
+ BOOST_TEST(test_delimited("ff ", hex, (char)0xff, char_(' ')));
+
         BOOST_TEST(test("1234", lower[uint_], 1234));
         BOOST_TEST(test("ff", lower[hex], 0xff));
         BOOST_TEST(test("1234", lower[oct], 01234));


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