Correct variable naming in OrTest

This commit is contained in:
Michael Bull 2017-10-21 19:04:23 +01:00
parent eb4aecaab8
commit 6f21fd634b

View File

@ -15,8 +15,8 @@ internal class OrTest {
@Test @Test
internal fun `or should return the default value if not ok`() { internal fun `or should return the default value if not ok`() {
val error = err(OrError).or(ok(5000)).get() val value = err(OrError).or(ok(5000)).get()
assertThat(error, equalTo(5000)) assertThat(value, equalTo(5000))
} }
@Test @Test
@ -27,7 +27,7 @@ internal class OrTest {
@Test @Test
internal fun `orElse should return the transformed value if not ok`() { internal fun `orElse should return the transformed value if not ok`() {
val error = err(4000).orElse { ok(2000) }.get() val value = err(4000).orElse { ok(2000) }.get()
assertThat(error, equalTo(2000)) assertThat(value, equalTo(2000))
} }
} }