aboutsummaryrefslogtreecommitdiff
path: root/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt')
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
index 70558df..77a3b62 100644
--- a/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/kpref/KPrefTest.kt
@@ -20,10 +20,10 @@ import android.content.SharedPreferences
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.MediumTest
import ca.allanwang.kau.context
-import kotlin.test.assertEquals
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
+import kotlin.test.assertEquals
/**
* Created by Allan Wang on 2017-08-01.
@@ -45,9 +45,12 @@ class KPrefTest {
var two by kpref("two", 2f)
- var `true` by kpref("true", true, postSetter = {
- postSetterCount++
- })
+ var `true` by kpref(
+ "true", true,
+ postSetter = {
+ postSetterCount++
+ }
+ )
var hello by kpref("hello", "hello")