This function provides an expectation for use with the "tinytest" package, which runs the pipeline specified in its first argument and compares the result to its second.
expect_pipeline_result(current, target, precision = "double", ...)
A "tinytest"
object.
The pipeline to run, which should have class "imbibe"
.
The target value to compare against, a numeric array of some
kind, which will be converted to a "niftiImage"
object.
A string specifying the working precision. Passed to
run
.
Further arguments to expect_equal
.