Skip to content

Commit

Permalink
fixup! Mastodon対応版のバージョン表記を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon committed Mar 7, 2020
1 parent 9112763 commit 21ea2ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions OpenTween.Tests/MyCommonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ public void ReplaceAppNameTest(string str, string excepted)
=> Assert.Equal(excepted, MyCommon.ReplaceAppName(str, "OpenTween"));

[Theory]
[InlineData("1.0.0.0", "1.0.0")]
[InlineData("1.0.0.1", "1.0.1-dev")]
[InlineData("1.0.0.12", "1.0.1-dev+build.12")]
[InlineData("1.0.1.0", "1.0.1")]
[InlineData("1.0.9.1", "1.0.10-dev")]
[InlineData("1.1.0.0", "1.1.0")]
[InlineData("1.9.9.1", "1.9.10-dev")]
[InlineData("1.0.0.0", "1.0.0+mastodon")]
[InlineData("1.0.0.1", "1.0.1-dev+mastodon")]
[InlineData("1.0.0.12", "1.0.1-dev+mastodon+build.12")]
[InlineData("1.0.1.0", "1.0.1+mastodon")]
[InlineData("1.0.9.1", "1.0.10-dev+mastodon")]
[InlineData("1.1.0.0", "1.1.0+mastodon")]
[InlineData("1.9.9.1", "1.9.10-dev+mastodon")]
public void GetReadableVersionTest(string fileVersion, string expected)
=> Assert.Equal(expected, MyCommon.GetReadableVersion(fileVersion));

Expand Down

0 comments on commit 21ea2ae

Please sign in to comment.