assert_exit_code multimethod

Methods

assert_exit_code(pp:ProcessesPipeline, expected:Int, title:Str=null) Source: autoload/test.ngs:177
Assert process exits with the specified exit code. Throws TestFail.

Returns

pp

Example

p = $(true); assert_exit_code(p, 0)   # OK
p = $(false); assert_exit_code(p, 1)  # OK
p = $(false); assert_exit_code(p, 0)  # Throws TestFail