aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_spec_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-17 08:52:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-17 08:52:17 +0000
commit0306b0b4a588cc14ad4ea0ceff8397dcf9f31fca (patch)
tree1ddd6bba1b72f8d8f8370bd380972b0270579837 /paludis/version_spec_TEST.cc
parentb37da39643d450b20f61fb564b5a028afada6785 (diff)
downloadpaludis-0306b0b4a588cc14ad4ea0ceff8397dcf9f31fca.tar.gz
paludis-0306b0b4a588cc14ad4ea0ceff8397dcf9f31fca.tar.xz
Fix tilde comparisons
Diffstat (limited to 'paludis/version_spec_TEST.cc')
-rw-r--r--paludis/version_spec_TEST.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/paludis/version_spec_TEST.cc b/paludis/version_spec_TEST.cc
index 98dd84580..54fae5cd5 100644
--- a/paludis/version_spec_TEST.cc
+++ b/paludis/version_spec_TEST.cc
@@ -151,22 +151,22 @@ namespace test_cases
void run()
{
- TEST_CHECK(! VersionSpec("1.3-r1").tilde_compare(VersionSpec("1.4-r1")));
- TEST_CHECK(! VersionSpec("1.3-r1").tilde_compare(VersionSpec("1.4")));
- TEST_CHECK(! VersionSpec("1.3-r1").tilde_compare(VersionSpec("1.2")));
- TEST_CHECK(! VersionSpec("1.3-r1").tilde_compare(VersionSpec("1.3")));
+ TEST_CHECK(! VersionSpec("1.4-r1").tilde_compare(VersionSpec("1.3-r1")));
+ TEST_CHECK(! VersionSpec("1.4").tilde_compare(VersionSpec("1.3-r1")));
+ TEST_CHECK(! VersionSpec("1.2").tilde_compare(VersionSpec("1.3-r1")));
+ TEST_CHECK(! VersionSpec("1.3").tilde_compare(VersionSpec("1.3-r1")));
TEST_CHECK(VersionSpec("1.2").tilde_compare(VersionSpec("1.2")));
- TEST_CHECK(VersionSpec("1.2").tilde_compare(VersionSpec("1.2-r1")));
- TEST_CHECK(VersionSpec("1.2").tilde_compare(VersionSpec("1.2-r1.2.3")));
- TEST_CHECK(! VersionSpec("1.2").tilde_compare(VersionSpec("1.3")));
- TEST_CHECK(VersionSpec("1.2-r1").tilde_compare(VersionSpec("1.2-r2")));
- TEST_CHECK(VersionSpec("1.2-r1").tilde_compare(VersionSpec("1.2-r2.3")));
+ TEST_CHECK(VersionSpec("1.2-r1").tilde_compare(VersionSpec("1.2")));
+ TEST_CHECK(VersionSpec("1.2-r1.2.3").tilde_compare(VersionSpec("1.2")));
+ TEST_CHECK(! VersionSpec("1.3").tilde_compare(VersionSpec("1.2")));
+ TEST_CHECK(VersionSpec("1.2-r2").tilde_compare(VersionSpec("1.2-r1")));
+ TEST_CHECK(VersionSpec("1.2-r2.3").tilde_compare(VersionSpec("1.2-r1")));
TEST_CHECK(VersionSpec("1.2-r2").tilde_compare(VersionSpec("1.2-r2")));
- TEST_CHECK(! VersionSpec("1.2-r2").tilde_compare(VersionSpec("1.2-r1")));
- TEST_CHECK(! VersionSpec("1.2-r2").tilde_compare(VersionSpec("1.2-r1.3")));
- TEST_CHECK(! VersionSpec("1.2-r2.3").tilde_compare(VersionSpec("1.2-r2")));
- TEST_CHECK(VersionSpec("1.2-r2.3").tilde_compare(VersionSpec("1.2-r2.4")));
+ TEST_CHECK(! VersionSpec("1.2-r1").tilde_compare(VersionSpec("1.2-r2")));
+ TEST_CHECK(! VersionSpec("1.2-r1.3").tilde_compare(VersionSpec("1.2-r2")));
+ TEST_CHECK(! VersionSpec("1.2-r2").tilde_compare(VersionSpec("1.2-r2.3")));
+ TEST_CHECK(VersionSpec("1.2-r2.4").tilde_compare(VersionSpec("1.2-r2.3")));
}
} test_version_spec_tilde_compare;