diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-01-27 21:00:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 21:00:54 +0100 |
commit | 4c75e917f256e046c090b7675ed2ff042b661e93 (patch) | |
tree | 26c06664ccf7db37b164dc5e3b7077006d2156b5 | |
parent | 81caefbcac5ecd379f944803995b3a816477c4ff (diff) | |
parent | 7d9dceb1afed64ddb49bb0f01acb1b8e56ae35b6 (diff) | |
download | nextcloud-server-4c75e917f256e046c090b7675ed2ff042b661e93.tar.gz nextcloud-server-4c75e917f256e046c090b7675ed2ff042b661e93.zip |
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.php | 1 |
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], |