From 46a5a28ec996d9bb28c84f3f8b37e7d737a56cea Mon Sep 17 00:00:00 2001 From: Love F Date: Sun, 3 Dec 2017 17:52:09 +0100 Subject: [PATCH] Add list check to examples --- README.md | 6 +++++- example/build.gradle | 2 +- example/src/test/kotlin/se/lovef/example/ExampleTest.kt | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 37d860f..85e2079 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ null.isNull() true.isTrue(); { null.isTrue() } throws Error::class + +listOf(1, "2") passes listCheck( + { it isEqualTo 1 }, + { it isEqualTo "2" }) ``` ## Setup @@ -34,7 +38,7 @@ true.isTrue(); ``` gradle dependencies { ... - testCompile 'se.lovef:kotlin-assert-utils:0.1.1' + testCompile 'se.lovef:kotlin-assert-utils:0.2.1' } repositories { diff --git a/example/build.gradle b/example/build.gradle index b807803..e88bca6 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin' dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - testCompile 'se.lovef:kotlin-assert-utils:0.1.1' + testCompile 'se.lovef:kotlin-assert-utils:0.2.1' } repositories { diff --git a/example/src/test/kotlin/se/lovef/example/ExampleTest.kt b/example/src/test/kotlin/se/lovef/example/ExampleTest.kt index 211aa39..fe813e0 100644 --- a/example/src/test/kotlin/se/lovef/example/ExampleTest.kt +++ b/example/src/test/kotlin/se/lovef/example/ExampleTest.kt @@ -30,5 +30,9 @@ class ExampleTest { true.isTrue(); { null.isTrue() } throws Error::class + + listOf(1, "2") passes listCheck( + { it isEqualTo 1 }, + { it isEqualTo "2" }) } }