assert_output_has multimethod

Methods

assert_output_has(pp:ProcessesPipeline, expected:RegExp, title:Str=null) Source: autoload/test.ngs:190
Assert process has given output. Throws TestFail.

Example

assert_output_has($(echo abc), /xyz/)        # Throws TestFail
p = $(echo abc); assert_output_has(p, /c$/)  # OK
assert_output_has(pp:ProcessesPipeline, expected:Str, title:Str=null) Source: autoload/test.ngs:201
Assert process has given output. Throws TestFail.

Example

assert_output_has($(echo abc), "xyz")        # Throws TestFail
p = $(echo abc); assert_output_has(p, "bc")  # OK