powered by
Expectation: is returned value less or greater than specified value?
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)
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)
object to test
Single numeric value to compare.
object label. When NULL, computed from deparsed object.
NULL
Equivalent of label for shortcut form.
label
other values passed to all.equal()
all.equal()
Other expectations: equality-expectations, expect_length, expect_match, expect_named, inheritance-expectations, logical-expectations, output-expectations
equality-expectations
expect_length
expect_match
expect_named
inheritance-expectations
logical-expectations
output-expectations
# NOT RUN { a <- 9 expect_lt(a, 10) # } # NOT RUN { expect_lt(11, 10) # } # NOT RUN { a <- 11 expect_gt(a, 10) # } # NOT RUN { expect_gt(9, 10) # }
Run the code above in your browser using DataLab