testing: add unit test framework
Add junit/espresso alongside a few basic tests. I am nowhere near close to being "done" with this at all.
This commit is contained in:
@@ -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 && tokens == other.tokens
|
||||
override fun equals(other: Any?) = other is Date && other.compareTo(this) == 0
|
||||
|
||||
override fun compareTo(other: Date): Int {
|
||||
for (i in 0 until max(tokens.size, other.tokens.size)) {
|
||||
|
||||
Reference in New Issue
Block a user