Unit testing list extension function - Kotlin

274 Views Asked by At

I am new to unit testing, and facing issue with a extension function, which is kind of:

fun List<Water>.getFileteredList() = return listOf(filteredWater)

Now if I want to test this function, how can I provide the list to the function while testing.

Water is just and example in this scenario.

0

There are 0 best solutions below