commit ada76ed3e2961765725c70ba631b79deebc2d0d8
Author: Ján Kupec
Date: Thu Jan 22 16:30:30 2009 +0100
indent
---
tests/zypp/base/String_test.cc | 52 ++++++++++++++++++++--------------------
1 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/tests/zypp/base/String_test.cc b/tests/zypp/base/String_test.cc
index db76e07..19d75b7 100644
--- a/tests/zypp/base/String_test.cc
+++ b/tests/zypp/base/String_test.cc
@@ -56,32 +56,32 @@ BOOST_AUTO_TEST_CASE(testsplitEscaped)
BOOST_CHECK_EQUAL( v.size(), 1 );
BOOST_CHECK_EQUAL( v.front(), string( "escaped sentence " ) );
- v.clear();
- s = string( "\"escaped \\\\sent\\\"ence \\\\\"" );
- ii = insert_iterator( v, v.end() );
- splitEscaped( s, ii );
- BOOST_CHECK_EQUAL( v.size(), 1 );
- BOOST_CHECK_EQUAL( v.front(), string( "escaped \\sent\"ence \\" ) );
-
-
- v.clear();
- s = string( "escaped sentence\\ with\\ space" );
- ii = insert_iterator( v, v.end() );
- splitEscaped( s, ii );
- BOOST_CHECK_EQUAL( v.size(), 2 );
- BOOST_CHECK_EQUAL( v[1], string( "sentence with space" ) );
-
- // split - join
- v.clear();
- s = "some line \"\" foo\\ a foo\\\\ b";
- str::splitEscaped( s, std::back_inserter(v) );
- BOOST_CHECK_EQUAL( s, str::joinEscaped( v.begin(), v.end() ) );
-
- // split - join using alternate sepchar
- s = str::joinEscaped( v.begin(), v.end(), 'o' );
- v.clear();
- str::splitEscaped( s, std::back_inserter(v), "o" );
- BOOST_CHECK_EQUAL( s, str::joinEscaped( v.begin(), v.end(), 'o' ) );
+ v.clear();
+ s = string( "\"escaped \\\\sent\\\"ence \\\\\"" );
+ ii = insert_iterator( v, v.end() );
+ splitEscaped( s, ii );
+ BOOST_CHECK_EQUAL( v.size(), 1 );
+ BOOST_CHECK_EQUAL( v.front(), string( "escaped \\sent\"ence \\" ) );
+
+
+ v.clear();
+ s = string( "escaped sentence\\ with\\ space" );
+ ii = insert_iterator( v, v.end() );
+ splitEscaped( s, ii );
+ BOOST_CHECK_EQUAL( v.size(), 2 );
+ BOOST_CHECK_EQUAL( v[1], string( "sentence with space" ) );
+
+ // split - join
+ v.clear();
+ s = "some line \"\" foo\\ a foo\\\\ b";
+ str::splitEscaped( s, std::back_inserter(v) );
+ BOOST_CHECK_EQUAL( s, str::joinEscaped( v.begin(), v.end() ) );
+
+ // split - join using alternate sepchar
+ s = str::joinEscaped( v.begin(), v.end(), 'o' );
+ v.clear();
+ str::splitEscaped( s, std::back_inserter(v), "o" );
+ BOOST_CHECK_EQUAL( s, str::joinEscaped( v.begin(), v.end(), 'o' ) );
}
BOOST_AUTO_TEST_CASE(testsplitEscapedWithEmpty)
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org