//arrow-meta-test/arrow.meta.plugin.testing/AssertSyntax/evalsTo
[jvm]
open fun Code.Source.evalsTo(value: Any?, onError: (Throwable) -> Any? = { throw it }): Assert.SingleAssert
Checks if a code snippet evals to a provided value after the compilation. This operation loads all the generated classes and run the code snippet by reflection.
jvm
value | Expected result after running the code snippet. |
Do you like Arrow?
✖