13.10 Expect functions

  • Testing for equality with some tolerance expect_equal()
  • expect_identical() more strict
  • expect_true() and expect_false() check if something is TRUE or FALSE
  • Testing errors: expect_error()
  • expect_length(object, n)
  • expect_match(object, regexp, ...)

And many more!