Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11755 - /trunk/libzypp/tests/sat/LookupAttr_test.cc
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 20 Nov 2008 18:56:15 -0000
  • Message-id: <20081120185615.94744E02C3@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Nov 20 19:56:15 2008
New Revision: 11755

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11755&view=rev
Log:
LookupAttr_test updated

Modified:
trunk/libzypp/tests/sat/LookupAttr_test.cc

Modified: trunk/libzypp/tests/sat/LookupAttr_test.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/sat/LookupAttr_test.cc?rev=11755&r1=11754&r2=11755&view=diff
==============================================================================
--- trunk/libzypp/tests/sat/LookupAttr_test.cc (original)
+++ trunk/libzypp/tests/sat/LookupAttr_test.cc Thu Nov 20 19:56:15 2008
@@ -170,6 +170,24 @@
}
}

+BOOST_AUTO_TEST_CASE(LookupAttr_repoattr)
+{
+ sat::LookupAttr q( sat::SolvAttr::repositoryAddedFileProvides,
sat::LookupAttr::REPO_ATTR );
+ BOOST_CHECK( ! q.empty() );
+ BOOST_CHECK_EQUAL( q.size(), 264 );
+
+ sat::LookupRepoAttr p( sat::SolvAttr::repositoryAddedFileProvides );
+ BOOST_CHECK( ! p.empty() );
+ BOOST_REQUIRE_EQUAL( p.size(), q.size() );
+
+ sat::LookupRepoAttr::iterator pit( p.begin() );
+ for_( qit, q.begin(), q.end() )
+ {
+ BOOST_CHECK_EQUAL( qit, pit );
+ ++pit;
+ }
+}
+
#if 0
BOOST_AUTO_TEST_CASE(LookupAttr_)
{

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages