music: complete non-android date tests

Complete the date tests that don't require a context.
This commit is contained in:
Alexander Capehart
2023-01-05 12:55:15 -07:00
parent 78e3739a68
commit a5e78e614f
4 changed files with 106 additions and 23 deletions
@@ -74,7 +74,7 @@ class Date private constructor(private val tokens: List<Int>) : Comparable<Date>
override fun hashCode() = tokens.hashCode()
override fun equals(other: Any?) = other is Date && other.compareTo(this) == 0
override fun equals(other: Any?) = other is Date && compareTo(other) == 0
override fun compareTo(other: Date): Int {
for (i in 0 until max(tokens.size, other.tokens.size)) {