aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_spec_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/version_spec_TEST.cc')
-rw-r--r--paludis/version_spec_TEST.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/version_spec_TEST.cc b/paludis/version_spec_TEST.cc
index f27e3c5b2..19ab039be 100644
--- a/paludis/version_spec_TEST.cc
+++ b/paludis/version_spec_TEST.cc
@@ -345,6 +345,9 @@ TEST(VersionSpec, Ordering)
ASSERT_TRUE(VersionSpec("1.2-r3", { }).hash() == VersionSpec("1.2-r3.0", { }).hash());
ASSERT_TRUE(VersionSpec("1.2", { }).hash() == VersionSpec("1.2-r0.0", { }).hash());
+ ASSERT_TRUE(VersionSpec("0-scm", { }) < VersionSpec("1", { }));
+ ASSERT_TRUE(VersionSpec("1-try-scm", { }) > VersionSpec("1-try1", { }));
+
std::vector<VersionSpec> v;
v.push_back(VersionSpec("1_alpha_alpha", { }));
v.push_back(VersionSpec("1_alpha", { }));