Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-27 18:01:26 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-27 18:01:26 +0300
commit7d9dceb1afed64ddb49bb0f01acb1b8e56ae35b6 (patch)
tree1a37e8ac9a8c9e07dffd63c663b2a8b2b85eecd0 /tests/lib/App
parent3a9c7f99f632f973caaf6a7aca5ca9294bb11db3 (diff)
Add negative version comparison test for version suffixes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/CompareVersionTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/App/CompareVersionTest.php b/tests/lib/App/CompareVersionTest.php
index d94b6f18a0f..cec4f1114df 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],