|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60346 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2010-03-08 07:50:04
Author: djowel
Date: 2010-03-08 07:50:04 EST (Mon, 08 Mar 2010)
New Revision: 60346
URL: http://svn.boost.org/trac/boost/changeset/60346
Log:
more tests
Text files modified:
trunk/libs/spirit/test/qi/char_class.cpp | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
Modified: trunk/libs/spirit/test/qi/char_class.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/char_class.cpp (original)
+++ trunk/libs/spirit/test/qi/char_class.cpp 2010-03-08 07:50:04 EST (Mon, 08 Mar 2010)
@@ -84,7 +84,7 @@
{
// we use the hoisted qi namespace this time
- using namespace boost::spirit::qi::iso8859_1;
+ using namespace boost::spirit::qi::iso8859_1;
BOOST_TEST(test("1", alnum));
BOOST_TEST(!test(" ", alnum));
BOOST_TEST(!test("1", alpha));
@@ -171,7 +171,7 @@
BOOST_TEST(test(L"f", xdigit));
BOOST_TEST(!test(L"g", xdigit));
}
-
+
{
using namespace boost::spirit::unicode;
BOOST_TEST(test(L"1", alnum));
@@ -196,6 +196,18 @@
BOOST_TEST(test(L"0", xdigit));
BOOST_TEST(test(L"f", xdigit));
BOOST_TEST(!test(L"g", xdigit));
+
+// needed for VC7.1 only
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1310))
+#pragma setlocale("german")
+#endif
+ BOOST_TEST(test("é", alpha));
+ BOOST_TEST(test("é", lower));
+ BOOST_TEST(!test("é", upper));
+
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1310))
+#pragma setlocale("")
+#endif
}
{ // test attribute extraction
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