aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-04-18 11:35:48 +0200
committerFabian Groffen <grobian@gentoo.org>2022-04-18 11:35:48 +0200
commit7de2f154c775e9de276f2fc1f619922f48a13b90 (patch)
tree654a5408018bc8fc18c32b5e7c1d664c17549fb8 /tests
parentqcheck: fix config-protect check, bug #837188 (diff)
downloadportage-utils-7de2f154c775e9de276f2fc1f619922f48a13b90.tar.gz
portage-utils-7de2f154c775e9de276f2fc1f619922f48a13b90.tar.bz2
portage-utils-7de2f154c775e9de276f2fc1f619922f48a13b90.zip
libq/atom: implement strict PMS 3.3 in atom_compare
Version comparisons are complex, stick with strict PMS definition for it, so we produce the same results as Portage. Bug: https://bugs.gentoo.org/838856 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/atom_compare/static.q.good3
-rw-r--r--tests/atom_compare/static.q.tests1
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/atom_compare/static.q.good b/tests/atom_compare/static.q.good
index 621cf0bd..08fa26a3 100644
--- a/tests/atom_compare/static.q.good
+++ b/tests/atom_compare/static.q.good
@@ -1,6 +1,7 @@
a/b == b
a/b-1 == b
-a-1 == =a-1.0*
+a-1 != =a-1.0*
+a-1.0 == =a-1*
a-1:1234 == a-1
a-1:0 < a-2:0
a-1:0 == a-1:0
diff --git a/tests/atom_compare/static.q.tests b/tests/atom_compare/static.q.tests
index 31b5fb5a..02231ffd 100644
--- a/tests/atom_compare/static.q.tests
+++ b/tests/atom_compare/static.q.tests
@@ -4,6 +4,7 @@
a/b b
a/b-1 b
a-1 =a-1.0*
+a-1.0 =a-1*
a-1:1234 a-1
a-1:0 a-2:0
a-1:0 a-1:0