aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_spec_TEST.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-03-23 18:57:31 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2009-03-23 18:57:31 +0000
commit9f2c388c6954d13c7562d4e625fc786bc60f1c74 (patch)
tree3ce29b034160b99df313700c48357c8b070bdc76 /paludis/version_spec_TEST.cc
parentd40b124656e5d24930e3206e65251757a769907c (diff)
downloadpaludis-9f2c388c6954d13c7562d4e625fc786bc60f1c74.tar.gz
paludis-9f2c388c6954d13c7562d4e625fc786bc60f1c74.tar.xz
FAIL
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 22ffa4b63..4b6fc3391 100644
--- a/paludis/version_spec_TEST.cc
+++ b/paludis/version_spec_TEST.cc
@@ -246,6 +246,8 @@ namespace test_cases
TEST_CHECK(! VersionSpec("1.2.3", VersionSpecOptions()).tilde_compare(VersionSpec("1.2-r3", VersionSpecOptions())));
TEST_CHECK(! VersionSpec("1.2-r3", VersionSpecOptions()).tilde_compare(VersionSpec("1.2.3", VersionSpecOptions())));
+ TEST_CHECK(! VersionSpec("1.2", VersionSpecOptions()).tilde_compare(VersionSpec("1.2-r0.2", VersionSpecOptions())));
+ TEST_CHECK(! VersionSpec("1.2-r0.1", VersionSpecOptions()).tilde_compare(VersionSpec("1.2-r0.2", VersionSpecOptions())));
}
} test_version_spec_tilde_compare;
@@ -434,6 +436,8 @@ namespace test_cases
TEST_CHECK(VersionSpec("1.2", VersionSpecOptions()) == VersionSpec("1.2-r", VersionSpecOptions()));
TEST_CHECK(VersionSpec("1.2-r3", VersionSpecOptions()) == VersionSpec("1.2-r3.0", VersionSpecOptions()));
TEST_CHECK(VersionSpec("1.2", VersionSpecOptions()) == VersionSpec("1.2-r0.0", VersionSpecOptions()));
+ TEST_CHECK(VersionSpec("1.2", VersionSpecOptions()) != VersionSpec("1.2-r0.1", VersionSpecOptions()));
+ TEST_CHECK(VersionSpec("1.2-r0.1", VersionSpecOptions()) != VersionSpec("1.2", VersionSpecOptions()));
TEST_CHECK(VersionSpec("1_alpha_beta-scm", VersionSpecOptions()) == VersionSpec("1_alpha0_beta-scm", VersionSpecOptions()));
TEST_CHECK(VersionSpec("1_alpha_beta000_rc3-scm", VersionSpecOptions()) == VersionSpec("1_alpha00_beta_rc3-scm", VersionSpecOptions()));