From ada76ed3e2961765725c70ba631b79deebc2d0d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Kupec?= Date: Thu, 22 Jan 2009 16:30:30 +0100 Subject: [PATCH] indent --- tests/zypp/base/String_test.cc | 52 +++++++++++++++++++++--------------------- 1 file 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) -- 2.7.4