diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-01 19:32:49 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-01 19:32:49 -0400 |
commit | 6c39a31f72c5d6e1e202fe3fbed5f775976e448b (patch) | |
tree | 19604f9e1391eb17a393e82d8b59fd0692b1a87a /src/SMAPI.Tests/Utilities | |
parent | f5386fcf6028cb6d6f9e93bf282c4c99a62debf7 (diff) | |
download | SMAPI-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.cs | 1 |
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)] |