testwhat (version 4.2.2)

is_equal: Check equality of two objects

Description

Utility function to use inside check_that.

Usage

is_equal(x, y, eq_condition = "equivalent")
"is_equal"(x, y, eq_condition = "equivalent")
"is_equal"(x, y, eq_condition = "equivalent")

Arguments

x
object to test
y
object to compare
eq_condition
how to compare the objects: "equivalent" (the default, does not check attributes), "equal" (checks attributes, but allows for errors in machine precision), or "identical" (exactly identical).