Author: mlandres Date: Tue Jan 15 15:34:30 2008 New Revision: 8290 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8290&view=rev Log: backup Modified: branches/tmp/ma/jump_sat/libzypp/devel/devel.ma/NewPool.cc branches/tmp/ma/jump_sat/libzypp/tests/zypp/Edition.cc branches/tmp/ma/jump_sat/libzypp/tests/zypp/ResKind_test.cc Modified: branches/tmp/ma/jump_sat/libzypp/devel/devel.ma/NewPool.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/devel/... ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/devel/devel.ma/NewPool.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/devel/devel.ma/NewPool.cc Tue Jan 15 15:34:30 2008 @@ -605,7 +605,8 @@ MIL << satpool << endl; for_( it, satpool.solvablesBegin(), satpool.solvablesEnd() ) { - dumpOn( MIL, *it ); + MIL << *it << endl; + //MIL << dump(*it) << endl; } /////////////////////////////////////////////////////////////////// Modified: branches/tmp/ma/jump_sat/libzypp/tests/zypp/Edition.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/tests/... ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/tests/zypp/Edition.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/tests/zypp/Edition.cc Tue Jan 15 15:34:30 2008 @@ -16,8 +16,6 @@ void edition_test() { - BOOST_CHECK_THROW( Edition(string("A::foo--foo")), exception ); - Edition _ed1 ("1"); Edition _ed2 ("1.1"); Edition _ed3 ("1:1"); @@ -33,6 +31,10 @@ BOOST_CHECK_EQUAL(_ed3, Edition ("1", "", "1")); BOOST_CHECK_EQUAL(_ed3, Edition ("1", "", 1)); BOOST_CHECK_EQUAL(_ed4, Edition ("1", "1", 2)); + + BOOST_CHECK_EQUAL( Edition::compare("1:1-1","2:1-1"), -1 ); + BOOST_CHECK_EQUAL( Edition::compare("2:1-1","2:1-1"), 0 ); + BOOST_CHECK_EQUAL( Edition::compare("3:1-1","2:1-1"), 1 ); } test_suite* Modified: branches/tmp/ma/jump_sat/libzypp/tests/zypp/ResKind_test.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/tests/... ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/tests/zypp/ResKind_test.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/tests/zypp/ResKind_test.cc Tue Jan 15 15:34:30 2008 @@ -22,11 +22,15 @@ BOOST_CHECK_EQUAL( ResKind("FOO").asString(), "foo" ); // Caseinsensitive comparison BOOST_CHECK_EQUAL( ResKind("FOO"), ResKind("foo") ); + BOOST_CHECK_EQUAL( ResKind("FOO"), string("Foo") ); + BOOST_CHECK_EQUAL( ResKind("FOO"), "Foo" ); BOOST_CHECK_EQUAL( ResKind("FOO"), string("foo") ); BOOST_CHECK_EQUAL( ResKind("FOO"), "foo" ); BOOST_CHECK_EQUAL( string("foo"), ResKind("FOO") ); BOOST_CHECK_EQUAL( "foo", ResKind("FOO") ); + BOOST_CHECK_EQUAL( ResKind::compare( "FOO", "foo" ), 0 ); + } test_suite * init_unit_test_suite( int, char * [] ) { -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org