aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/ca/allanwang
diff options
context:
space:
mode:
authorAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
committerAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
commit5aefeee08f68777dd07a16bd42a7d2392db6bbc9 (patch)
treea357e6cd419123d69ca5d2977c8ce839c56f3d87 /core/src/test/kotlin/ca/allanwang
parent85e9e1f253bb14512ae404989c45cbc199eb1eba (diff)
downloadkau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.gz
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.bz2
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.zip
Apply spotless
Diffstat (limited to 'core/src/test/kotlin/ca/allanwang')
-rw-r--r--core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt8
-rw-r--r--core/src/test/kotlin/ca/allanwang/kau/kotlin/StreamsTest.kt4
2 files changed, 6 insertions, 6 deletions
diff --git a/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt b/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
index c406901..d43901f 100644
--- a/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
+++ b/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
@@ -50,16 +50,16 @@ class DebounceTest {
fun multipleDebounces() {
var i = 0
val debounce = debounce<Int>(20) { i += it }
- debounce(1) //ignore -> i = 0
+ debounce(1) // ignore -> i = 0
Thread.sleep(10)
assertEquals(0, i)
- debounce(2) //accept -> i = 2
+ debounce(2) // accept -> i = 2
Thread.sleep(30)
assertEquals(2, i)
- debounce(4) //ignore -> i = 2
+ debounce(4) // ignore -> i = 2
Thread.sleep(10)
assertEquals(2, i)
- debounce(8) //accept -> i = 10
+ debounce(8) // accept -> i = 10
Thread.sleep(30)
assertEquals(10, i)
}
diff --git a/core/src/test/kotlin/ca/allanwang/kau/kotlin/StreamsTest.kt b/core/src/test/kotlin/ca/allanwang/kau/kotlin/StreamsTest.kt
index 4dc4a34..e3d4e5b 100644
--- a/core/src/test/kotlin/ca/allanwang/kau/kotlin/StreamsTest.kt
+++ b/core/src/test/kotlin/ca/allanwang/kau/kotlin/StreamsTest.kt
@@ -47,10 +47,10 @@ class StreamsTest {
items.add(3, thePotato)
assertEquals(result.size + 1, items.size, "Invalid list addition")
assertEquals(2, items.filter { it.id == 9 }.size, "Invalid number of potatoes with id 9")
- items.kauRemoveIf { it === thePotato } //removal by reference
+ items.kauRemoveIf { it === thePotato } // removal by reference
assertEquals(result.size, items.size, "Invalid list size after removal")
assertEquals(result, items)
- items.kauRemoveIf { it == thePotato } //removal by equality
+ items.kauRemoveIf { it == thePotato } // removal by equality
assertEquals(result.size - 1, items.size, "Invalid list removal based on equality")
}
}