refactored filterNulls() to filterNotNull() which is a clearer name - thanks Stepan!

This commit is contained in:
James Strachan
2012-03-08 14:36:23 +00:00
parent 8d48e3c8a8
commit db72208a91
6 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -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)
}
}