Relaxed expect_equal

  • expect_setequal(x, y) tests:
    • Every value in x occurs in y
    • Every value in y occurs in x


  • expect_mapequal(x, y) tests:
    • x and y have the same names.
    • x[names(y)] == y