Skip to content

Commit 6202b64

Browse files
authored
Merge pull request #87 from Maxr1998/fix-timestamp-format
Fix timestamp format in LrcLyricParserTest
2 parents dd2289d + 5afe88a commit 6202b64

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ namespace LrcParser.Tests.Parser.Lrc.Lines;
1212

1313
public class LrcLyricParserTest : BaseSingleLineParserTest<LrcLyricParser, LrcLyric>
1414
{
15-
[TestCase("[00:17:97]帰[00:18:37]り[00:18:55]道[00:18:94]は[00:19:22]", true)]
16-
[TestCase("[00:17:97]<00:00.00>帰<00:00.00>り<00:00.00>道<00:00.00>は<00:00.00>", true)]
17-
[TestCase("karaoke", true)] // depends on the config, might be parsed but no time, or being ignored.
15+
[TestCase("[00:17.97]帰[00:18.37]り[00:18.55]道[00:18.94]は[00:19.22]", true)]
16+
[TestCase("[00:17.97]<00:00.00>帰<00:00.00>り<00:00.00>道<00:00.00>は<00:00.00>", 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)