From 637851b6ddc4a22583797a45bdbb72eb9c6dac23 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 9 Nov 2017 01:54:02 -0500 Subject: misc (#97) * Update translators * Increase debounce test interval * Clean unnecessary adapter files * Update fastadapter * Add fastadapter helper method * Remove external method * Add better wrap * Add more helpers --- core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/src/test/kotlin') 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 05345bd..8ccdab3 100644 --- a/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt +++ b/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt @@ -34,18 +34,18 @@ class DebounceTest { @Test fun multipleDebounces() { var i = 0 - val debounce = debounce(10) { i += it } + val debounce = debounce(20) { i += it } debounce(1) //ignore -> i = 0 - Thread.sleep(5) + Thread.sleep(10) assertEquals(0, i) debounce(2) //accept -> i = 2 - Thread.sleep(15) + Thread.sleep(30) assertEquals(2, i) debounce(4) //ignore -> i = 2 - Thread.sleep(5) + Thread.sleep(10) assertEquals(2, i) debounce(8) //accept -> i = 10 - Thread.sleep(15) + Thread.sleep(30) assertEquals(10, i) } -- cgit v1.2.3