|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75601 - trunk/libs/locale/test
From: artyomtnk_at_[hidden]
Date: 2011-11-22 03:47:00
Author: artyom
Date: 2011-11-22 03:46:58 EST (Tue, 22 Nov 2011)
New Revision: 75601
URL: http://svn.boost.org/trac/boost/changeset/75601
Log:
Fixed incorrect optional testing
Text files modified:
trunk/libs/locale/test/test_codepage.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/locale/test/test_codepage.cpp
==============================================================================
--- trunk/libs/locale/test/test_codepage.cpp (original)
+++ trunk/libs/locale/test/test_codepage.cpp 2011-11-22 03:46:58 EST (Tue, 22 Nov 2011)
@@ -336,8 +336,10 @@
void test_skip(char const *enc,char const *utf,char const *name,char const *opt=0)
{
if(opt!=0) {
- if(boost::locale::conv::to_utf<char>(enc,name) == opt)
+ if(boost::locale::conv::to_utf<char>(enc,name) == opt) {
test_skip(enc,opt,name);
+ return;
+ }
}
TEST(boost::locale::conv::to_utf<char>(enc,name) == utf);
TEST(boost::locale::conv::to_utf<wchar_t>(enc,name) == boost::locale::conv::utf_to_utf<wchar_t>(utf));
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