refactored filterNulls() to filterNotNull() which is a clearer name - thanks Stepan!
This commit is contained in:
@@ -10,7 +10,7 @@ class StringUtilTest() : TestCase() {
|
||||
|
||||
fun testToRegex() {
|
||||
val re = """foo""".toRegex()
|
||||
val list = re.split("hellofoobar").filterNulls()
|
||||
val list = re.split("hellofoobar").filterNotNull()
|
||||
assertEquals(arrayList("hello", "bar"), list)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user