R/expect-comparison.R
comparison-expectations.RdThese functions compare values of comparable data types, such as numbers, dates, and times.
expect_lt(object, expected, label = NULL, expected.label = NULL)
expect_lte(object, expected, label = NULL, expected.label = NULL)
expect_gt(object, expected, label = NULL, expected.label = NULL)
expect_gte(object, expected, label = NULL, expected.label = NULL)a <- 9
expect_lt(a, 10)
if (FALSE) { # \dontrun{
expect_lt(11, 10)
} # }
a <- 11
expect_gt(a, 10)
if (FALSE) { # \dontrun{
expect_gt(9, 10)
} # }