aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_spec_TEST.cc
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-01-28 20:52:16 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-01-28 20:52:16 +0000
commitba5801299006895b21384599c6197782cb084b2d (patch)
tree14aa0c661d35d71c3f3e72d4d02c779980b78e4c /paludis/version_spec_TEST.cc
parent7e90ff3d510787d2548e6c5f21df910321f9b675 (diff)
downloadpaludis-ba5801299006895b21384599c6197782cb084b2d.tar.gz
paludis-ba5801299006895b21384599c6197782cb084b2d.tar.xz
Better equal_star_compare, plus some testcases.
Diffstat (limited to 'paludis/version_spec_TEST.cc')
-rw-r--r--paludis/version_spec_TEST.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/version_spec_TEST.cc b/paludis/version_spec_TEST.cc
index bcee0520e..be9cffcc5 100644
--- a/paludis/version_spec_TEST.cc
+++ b/paludis/version_spec_TEST.cc
@@ -158,6 +158,10 @@ namespace test_cases
TEST_CHECK(VersionSpec("1.2.1").equal_star_compare(VersionSpec("1.2")));
TEST_CHECK(VersionSpec("2.2").equal_star_compare(VersionSpec("2")));
TEST_CHECK(VersionSpec("2").equal_star_compare(VersionSpec("2")));
+ TEST_CHECK(VersionSpec("2.59").equal_star_compare(VersionSpec("2.5")));
+ TEST_CHECK(VersionSpec("2.59_alpha5-r1").equal_star_compare(VersionSpec("2.59_alpha")));
+ TEST_CHECK(! VersionSpec("2").equal_star_compare(VersionSpec("2.5")));
+ TEST_CHECK(! VersionSpec("2.59").equal_star_compare(VersionSpec("2.50")));
TEST_CHECK(! VersionSpec("1").equal_star_compare(VersionSpec("2")));
}