Skip to content

Commit 970f392

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)