aboutsummaryrefslogtreecommitdiff
path: root/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
committerAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
commit71f5dc2f7ce5b8183421586e6a77be65040a4dff (patch)
treefedd18e271463ce2430637a9913e8470e84181ce /core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
parentf94d6f9694973c2a323e565794d948002593df0a (diff)
downloadkau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.gz
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.bz2
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.zip
Format everything and use reified generics
Diffstat (limited to 'core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt')
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
index 1b185f3..c2ffa8a 100644
--- a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt
@@ -17,8 +17,7 @@ class FaqTest {
@Test
fun simpleTest() {
- InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq) {
- data ->
+ InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq) { data ->
assertEquals(2, data.size, "FAQ size is incorrect")
assertEquals("1. This is a question", data.first().first.toString(), "First question does not match")
assertEquals("This is an answer", data.first().second.toString(), "First answer does not match")
@@ -29,8 +28,7 @@ class FaqTest {
@Test
fun withoutNumbering() {
- InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq, false) {
- data ->
+ InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq, false) { data ->
assertEquals(2, data.size, "FAQ size is incorrect")
assertEquals("This is a question", data.first().first.toString(), "First question does not match")
assertEquals("This is an answer", data.first().second.toString(), "First answer does not match")