Learn R Programming

imbibe (version 0.1.1)

expect_pipeline_result: Expectation for testing pipeline output

Description

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.

Usage

expect_pipeline_result(current, target, precision = "double", ...)

Value

A "tinytest" object.

Arguments

current

The pipeline to run, which should have class "imbibe".

target

The target value to compare against, a numeric array of some kind, which will be converted to a "niftiImage" object.

precision

A string specifying the working precision. Passed to run.

...

Further arguments to expect_equal.