nwaku/tests/testlib/assertions.nim

5 lines
111 B
Nim

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