nwaku/tests/testlib/assertions.nim

5 lines
110 B
Nim

import chronos
template assertResultOk*[T, E](result: Result[T, E]) =
assert result.isOk(), result.error()