dave
11/29/2019, 7:28 PM@Test
fun `keys use converted case`() {
val lens = <http://EnvironmentKey.int|EnvironmentKey.int>().required("FOO")
assertThrows<LensFailure> { lens(env) }
val withInjectedValue = env.with(lens of 80)
assertThat(lens(withInjectedValue), equalTo(80))
assertThat(withInjectedValue["foo"], equalTo("80"))
assertThat(<http://EnvironmentKey.int|EnvironmentKey.int>().required("FOO")(withInjectedValue), equalTo(80))
}