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:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-01-27 23:00:54 +0300
committerGitHub <noreply@github.com>2021-01-27 23:00:54 +0300
commit4c75e917f256e046c090b7675ed2ff042b661e93 (patch)
tree26c06664ccf7db37b164dc5e3b7077006d2156b5
parent81caefbcac5ecd379f944803995b3a816477c4ff (diff)
parent7d9dceb1afed64ddb49bb0f01acb1b8e56ae35b6 (diff)
Merge pull request #25348 from nextcloud/test/compare-version-test
Add negative version comparison test for version suffixes
-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],