Correct test method names in OnTest
This commit is contained in:
parent
b5aab62af4
commit
b6bb3aafaa
@ -9,7 +9,7 @@ internal class OnTest {
|
||||
|
||||
internal class `onSuccess` {
|
||||
@Test
|
||||
internal fun invokesCallbackIfOk() {
|
||||
internal fun invokesActionIfOk() {
|
||||
val counter = Counter(50)
|
||||
|
||||
Ok(counter).onSuccess { it.count += 50 }
|
||||
@ -35,7 +35,7 @@ internal class OnTest {
|
||||
|
||||
internal class `onFailure` {
|
||||
@Test
|
||||
internal fun invokesCallbackIfErr() {
|
||||
internal fun invokesActionIfErr() {
|
||||
val counter = Counter(555)
|
||||
|
||||
Err(CounterError).onFailure { counter.count += 100 }
|
||||
|
Loading…
Reference in New Issue
Block a user