Skip to content

Commit 970f392

Browse files
committed
Fix wrong unit test code about type casting
1 parent 1365e15 commit 970f392

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

whatif/src/test/java/com/skydoves/whatif/WhatIfUnitTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ class WhatIfUnitTest {
193193
fun whatIfNotNullTypeCastingTest() {
194194
var nullableInt: MutableList<Int>? = null
195195

196-
nullableInt.whatIfNotNullAs<String>(
197-
whatIf = { nullableInt = arrayListOf(it.length) },
196+
nullableInt.whatIfNotNullAs<List<String>>(
197+
whatIf = { nullableInt = arrayListOf(it.size) },
198198
whatIfNot = { nullableInt = arrayListOf(123) }
199199
)
200200

0 commit comments

Comments
 (0)