Skip to content

Commit

Permalink
가타부타 LiveDataTest<Iterable>.isNullOrEmpty 삭제
Browse files Browse the repository at this point in the history
테스트에서 이중적인 의미인 ‘or’을 사용하는 것은 잘못되었다 판단
  • Loading branch information
kimdohun0104 committed Nov 4, 2020
1 parent 9ea8bdd commit 4ce2886
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ infix fun <T : Collection<*>> LiveDataTest<T>.hasSize(expected: Int?) {
Assert.assertEquals(expected, value.size)
}

fun <T : Collection<*>> LiveDataTest<T>.isNullOrEmpty() {
if (!value.isNullOrEmpty()) {
fail()
}
}

fun <T : Collection<*>> LiveDataTest<T>.isEmpty() {
if (!value.isEmpty()) {
fail()
Expand Down

0 comments on commit 4ce2886

Please sign in to comment.