summaryrefslogtreecommitdiff
path: root/src/SMAPI.Tests/Utilities
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-10-01 19:32:49 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-10-01 19:32:49 -0400
commit6c39a31f72c5d6e1e202fe3fbed5f775976e448b (patch)
tree19604f9e1391eb17a393e82d8b59fd0692b1a87a /src/SMAPI.Tests/Utilities
parentf5386fcf6028cb6d6f9e93bf282c4c99a62debf7 (diff)
downloadSMAPI-6c39a31f72c5d6e1e202fe3fbed5f775976e448b.tar.gz
SMAPI-6c39a31f72c5d6e1e202fe3fbed5f775976e448b.tar.bz2
SMAPI-6c39a31f72c5d6e1e202fe3fbed5f775976e448b.zip
special-case '-unofficial' when comparing versions
Diffstat (limited to 'src/SMAPI.Tests/Utilities')
-rw-r--r--src/SMAPI.Tests/Utilities/SemanticVersionTests.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
index 35d74b60..1782308b 100644
--- a/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
+++ b/src/SMAPI.Tests/Utilities/SemanticVersionTests.cs
@@ -127,6 +127,7 @@ namespace StardewModdingAPI.Tests.Utilities
[TestCase("1.0-beta.1", "1.0-beta.2", ExpectedResult = -1)]
[TestCase("1.0-beta.2", "1.0-beta.10", ExpectedResult = -1)]
[TestCase("1.0-beta-2", "1.0-beta-10", ExpectedResult = -1)]
+ [TestCase("1.0-unofficial.1", "1.0-beta.1", ExpectedResult = -1)] // special case: 'unofficial' has lower priority than official releases
// more than
[TestCase("0.5.8", "0.5.7", ExpectedResult = 1)]