val expected = Left(
<http://java.io|java.io>.FileNotFoundException(
"data/monkeywrench.txt (No such file or directory)"
)
)
val result = loadShortCircuit(filePaths) // returns Arrow Left type in this example (see video)
val left = Left(<http://java.io|java.io>.FileNotFoundException("data/monkeywrench.txt (No such file or directory)"))
expected shouldBe left
Not related to your issue. In addition, look at the arrow-assertions kotest has.
Then you can do things like below. I think that makes the test easier to read, and saves a bit of object construction.