Skip to content

Commit

Permalink
clean-up code.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed May 1, 2021
1 parent fa5a952 commit 86b48cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void TestCheckParentLyric(int? lyricIndex, bool hasIssue)
{
case 0:
note.ParentLyric = lyric;
break;
break;

case 1:
note.ParentLyric = notInBeatmapLyric;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
Expand Down Expand Up @@ -43,7 +44,7 @@ public void TestCheckInvalidRubyTags(string text, string[] rubies, RubyTagInvali
};

var issue = run(lyric).OfType<RubyTagIssue>().FirstOrDefault();
var invalidRubyTagDictionaryKeys = issue?.InvalidRubyTags.Keys.ToArray() ?? new RubyTagInvalid[] { };
var invalidRubyTagDictionaryKeys = issue?.InvalidRubyTags.Keys.ToArray() ?? Array.Empty<RubyTagInvalid>();
Assert.AreEqual(invalidRubyTagDictionaryKeys, invalids);
}

Expand All @@ -62,7 +63,7 @@ public void TestCheckInvalidRomajiTags(string text, string[] romajies, RomajiTag
};

var issue = run(lyric).OfType<RomajiTagIssue>().FirstOrDefault();
var invalidRomajiTagDictionaryKeys = issue?.InvalidRomajiTags.Keys.ToArray() ?? new RomajiTagInvalid[] { };
var invalidRomajiTagDictionaryKeys = issue?.InvalidRomajiTags.Keys.ToArray() ?? Array.Empty<RomajiTagInvalid>();
Assert.AreEqual(invalidRomajiTagDictionaryKeys, invalids);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
Expand Down Expand Up @@ -38,7 +39,7 @@ public void TestCheckInvalidLyricTime(string lyricText, string[] timeTags, TimeI
lyric.TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags);

var issue = run(lyric).OfType<LyricTimeIssue>().FirstOrDefault();
var invalidTimeTagDictionaryKeys = issue?.InvalidLyricTime ?? new TimeInvalid[] { };
var invalidTimeTagDictionaryKeys = issue?.InvalidLyricTime ?? Array.Empty<TimeInvalid>();
Assert.AreEqual(invalidTimeTagDictionaryKeys, invalid);
}

Expand All @@ -56,7 +57,7 @@ public void TestCheckInvalidTimeTags(string text, string[] timeTags, TimeTagInva
};

var issue = run(lyric).OfType<TimeTagIssue>().FirstOrDefault();
var invalidTimeTagDictionaryKeys = issue?.InvalidTimeTags.Keys.ToArray() ?? new TimeTagInvalid[] { };
var invalidTimeTagDictionaryKeys = issue?.InvalidTimeTags.Keys.ToArray() ?? Array.Empty<TimeTagInvalid>();
Assert.AreEqual(invalidTimeTagDictionaryKeys, invalids);
}

Expand Down
1 change: 1 addition & 0 deletions osu.Game.Rulesets.Karaoke.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ private void load()
<s:Boolean x:Key="/Default/UserDictionary/Words/=Bindables/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Catmull/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Coronavirus/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=cuttable/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Demibold/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Drawables/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=dropdown_0027s/@EntryIndexedValue">True</s:Boolean>
Expand Down

0 comments on commit 86b48cd

Please sign in to comment.