aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-07 05:11:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-07 05:11:28 +0000
commit035e4f5c20514e68d24343607be9894322d15b71 (patch)
treeddc1f921f087514d488302d8faca0d4eefa5bb9b
parent4b23fc729c38213ba96a6d3555a765fe42646529 (diff)
downloadpaludis-035e4f5c20514e68d24343607be9894322d15b71.tar.gz
paludis-035e4f5c20514e68d24343607be9894322d15b71.tar.xz
A few more :slot deps checks
-rw-r--r--paludis/dep_atom_TEST.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/dep_atom_TEST.cc b/paludis/dep_atom_TEST.cc
index d7db769..9d97367 100644
--- a/paludis/dep_atom_TEST.cc
+++ b/paludis/dep_atom_TEST.cc
@@ -62,6 +62,18 @@ namespace test_cases
TEST_CHECK(d.version_spec_ptr());
TEST_CHECK_STRINGIFY_EQUAL(*d.version_spec_ptr(), "1.2");
TEST_CHECK_EQUAL(d.version_operator(), vo_equal_star);
+
+ PackageDepAtom e("foo/bar:1.2.1");
+ TEST_CHECK_STRINGIFY_EQUAL(e.package(), "foo/bar");
+ TEST_CHECK(e.slot_ptr());
+ TEST_CHECK_STRINGIFY_EQUAL(*e.slot_ptr(), "1.2.1");
+ TEST_CHECK(! e.version_spec_ptr());
+
+ PackageDepAtom f("foo/bar:0");
+ TEST_CHECK_STRINGIFY_EQUAL(f.package(), "foo/bar");
+ TEST_CHECK(f.slot_ptr());
+ TEST_CHECK_STRINGIFY_EQUAL(*f.slot_ptr(), "0");
+ TEST_CHECK(! f.version_spec_ptr());
}
} test_package_dep_atom;
}