diff options
author | Allan Wang <me@allanwang.ca> | 2017-11-09 01:54:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 01:54:02 -0500 |
commit | 637851b6ddc4a22583797a45bdbb72eb9c6dac23 (patch) | |
tree | 68b5a496ea3c8783fa61748c74a88fb692df553b /core | |
parent | 98e8a962c419d49de6e6050bf834f4d490932aa9 (diff) | |
download | kau-637851b6ddc4a22583797a45bdbb72eb9c6dac23.tar.gz kau-637851b6ddc4a22583797a45bdbb72eb9c6dac23.tar.bz2 kau-637851b6ddc4a22583797a45bdbb72eb9c6dac23.zip |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt | 10 |
1 files changed, 5 insertions, 5 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 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<Int>(10) { i += it } + val debounce = debounce<Int>(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) } |