From cf914a9bc0dfb9c3c80103f8de776a645971cf21 Mon Sep 17 00:00:00 2001 From: Brian Norman Date: Wed, 12 Feb 2020 22:35:04 -0600 Subject: [PATCH] Revert accidental test change --- .../src/test/kotlin/com/bnorm/power/test.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kotlin-power-assert/src/test/kotlin/com/bnorm/power/test.kt b/kotlin-power-assert/src/test/kotlin/com/bnorm/power/test.kt index 598d6d6fee0..059b8a8cddd 100644 --- a/kotlin-power-assert/src/test/kotlin/com/bnorm/power/test.kt +++ b/kotlin-power-assert/src/test/kotlin/com/bnorm/power/test.kt @@ -228,12 +228,10 @@ assert(text == null || (text.length == 5 && text.toLowerCase() == text)) @Test fun booleanMixOrLast() { assertMessage( - """fun main() { - val text: String? = null - assert( - (text != null && text.toLowerCase() == text) || - text == "Hello" - ) + """ +fun main() { + val text = "Hello" + assert((text.length == 5 && text.toLowerCase() == text) || text.length == 1) }""", """ Assertion failed