Skip to content

Commit

Permalink
improve error 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jul 12, 2024
1 parent a96b208 commit f107377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/test/kotlin/org/akanework/gramophone/LrcUtilsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ class LrcUtilsTest {
if (multiline == null) {
val a = parse(lrcContent, trim, true, mustSkip)
val b = parse(lrcContent, trim, false, mustSkip)
assertEquals("multiline true and false should result in same list for this string", b, a)
assertEquals("multiline true and false should result in same list for this string (trim=$trim)", b, a)
return a
}
val a = LrcUtils.parseLrcString(lrcContent, trim, multiline)
if (mustSkip != null) {
val b = listOf(MediaStoreUtils.Lyric(content = lrcContent))
if (mustSkip) {
assertEquals(b, a)
assertEquals("excepted skip (trim=$trim multiline=$multiline)", b, a)
} else {
assertNotEquals(b, a)
assertNotEquals("excepted no skip (trim=$trim multiline=$multiline)", b, a)
}
}
return a
Expand Down

0 comments on commit f107377

Please sign in to comment.