omxCheckEquals: Equality Testing Function

View source: R/MxUnitTesting.R

omxCheckEqualsR Documentation

Equality Testing Function

Description

This function tests whether two objects are equal using the ‘==’ operator.

Usage

omxCheckEquals(...)

Arguments

...

arguments forwarded to expect_equivalent

Details

Performs the ‘==’ comparison on the two arguments. If the two arguments are not equal, then an error will be thrown.

References

The OpenMx User's guide can be found at https://openmx.ssri.psu.edu/documentation/.

See Also

omxCheckCloseEnough, omxCheckWithinPercentError, omxCheckSetEquals, omxCheckTrue, omxCheckIdentical

Examples


omxCheckEquals(c(1, 2, 3), c(1, 2, 3))

omxCheckEquals(FALSE, FALSE)

# Throws an error
try(omxCheckEquals(c(1, 2, 3), c(2, 1, 3)))


OpenMx/OpenMx documentation built on April 17, 2024, 3:32 p.m.