tinytest: Expectation for testing pipeline output

expect_pipeline_resultR Documentation

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", ...)

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.

Value

A "tinytest" object.


imbibe documentation built on Nov. 10, 2022, 5:54 p.m.