aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-29 11:03:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:32:58 +0100
commit5574c81a3c60266d023d18dfc115803da8b12e6b (patch)
tree659da456cb9813045fd32067a3db11d7c7d7ce82 /paludis/user_dep_spec_TEST.cc
parentb7f5d7dbfeff2e406ef24ca471657e1735a4db4f (diff)
downloadpaludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.gz
paludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.xz
category and package parts to requirements
Diffstat (limited to 'paludis/user_dep_spec_TEST.cc')
-rw-r--r--paludis/user_dep_spec_TEST.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/paludis/user_dep_spec_TEST.cc b/paludis/user_dep_spec_TEST.cc
index d4d05ddfb..7e325da8a 100644
--- a/paludis/user_dep_spec_TEST.cc
+++ b/paludis/user_dep_spec_TEST.cc
@@ -99,19 +99,19 @@ UserDepSpecTest::check_spec(
}
if (category_name_part.empty())
- EXPECT_TRUE(! spec.category_name_part_ptr());
+ EXPECT_TRUE(! spec.category_name_part_constraint());
else
{
- EXPECT_TRUE(bool(spec.category_name_part_ptr()));
- EXPECT_EQ(category_name_part, stringify(*spec.category_name_part_ptr()));
+ EXPECT_TRUE(bool(spec.category_name_part_constraint()));
+ EXPECT_EQ(category_name_part, stringify(spec.category_name_part_constraint()->name_part()));
}
if (package_name_part.empty())
- EXPECT_TRUE(! spec.package_name_part_ptr());
+ EXPECT_TRUE(! spec.package_name_part_constraint());
else
{
- EXPECT_TRUE(bool(spec.package_name_part_ptr()));
- EXPECT_EQ(package_name_part, stringify(*spec.package_name_part_ptr()));
+ EXPECT_TRUE(bool(spec.package_name_part_constraint()));
+ EXPECT_EQ(package_name_part, stringify(spec.package_name_part_constraint()->name_part()));
}
if (! version_requirement_mode.empty())