Skip to content

Commit 5afe88a

Browse files
committed
Add more test cases and comments for it.
Some test cases might be false if not support parsing the lyric without start timing.
1 parent 7e9a910 commit 5afe88a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LrcParser.Tests/Parser/Lrc/Lines/LrcLyricParserTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ public class LrcLyricParserTest : BaseSingleLineParserTest<LrcLyricParser, LrcLy
1414
{
1515
[TestCase("[00:17.97]帰[00:18.37]り[00:18.55]道[00:18.94]は[00:19.22]", true)]
1616
[TestCase("[00:17.97]<00:00.00>帰<00:00.00>り<00:00.00>道<00:00.00>は<00:00.00>", true)]
17-
[TestCase("karaoke", true)]
17+
[TestCase("[00:17.97]", true)] // only start time-tag can be decode.
18+
[TestCase("[00:17:97]", true)] // invalid time-tag might be decoded as lyric string with no time-tag info.
19+
[TestCase("karaoke", true)] // string might be parsed into lyric without any time info for now.
1820
[TestCase("", false)]
1921
[TestCase(null, false)]
2022
public void TestCanDecode(string text, bool expected)

0 commit comments

Comments
 (0)