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:
Alexander Capehart
2023-01-05 12:27:37 -07:00
parent a10cf1e0c3
commit 78e3739a68
5 changed files with 205 additions and 5 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 && 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)) {