Correct test method names in OnTest

This commit is contained in:
Michael Bull 2018-11-01 11:42:57 +00:00
parent b5aab62af4
commit b6bb3aafaa

View File

@ -9,7 +9,7 @@ internal class OnTest {
internal class `onSuccess` { internal class `onSuccess` {
@Test @Test
internal fun invokesCallbackIfOk() { internal fun invokesActionIfOk() {
val counter = Counter(50) val counter = Counter(50)
Ok(counter).onSuccess { it.count += 50 } Ok(counter).onSuccess { it.count += 50 }
@ -35,7 +35,7 @@ internal class OnTest {
internal class `onFailure` { internal class `onFailure` {
@Test @Test
internal fun invokesCallbackIfErr() { internal fun invokesActionIfErr() {
val counter = Counter(555) val counter = Counter(555)
Err(CounterError).onFailure { counter.count += 100 } Err(CounterError).onFailure { counter.count += 100 }