From 7d9dceb1afed64ddb49bb0f01acb1b8e56ae35b6 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 27 Jan 2021 16:01:26 +0100 Subject: [PATCH] Add negative version comparison test for version suffixes Signed-off-by: Christoph Wurst --- tests/lib/App/CompareVersionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/App/CompareVersionTest.php b/tests/lib/App/CompareVersionTest.php index d94b6f18a0..cec4f1114d 100644 --- a/tests/lib/App/CompareVersionTest.php +++ b/tests/lib/App/CompareVersionTest.php @@ -56,6 +56,7 @@ class CompareVersionTest extends TestCase { ['7.4.14', '7.4', '<=', true], ['7.4.14-ubuntu', '7.4', '<=', true], ['7.4.14-ubuntu', '7.4.15', '<=', true], + ['7.4.16-ubuntu', '7.4.15', '<=', false], // Incompatible major versions ['13.0.0.3', '13.0.0', '<', false], ['12.0.0', '13.0.0', '>=', false],