If the object for expect_match is zero length, the test fails, but info is not reported. Contrast with expect_equal, when info is reported.
expect_match(character(0), "regex", info = "my info")
expect_equal(character(0), "regex", info = "my info")
Expected: if object is zero length, the user's info string should be used, in line with other testthat expectations.
Maybe related to #100
If the
objectfor expect_match is zero length, the test fails, butinfois not reported. Contrast withexpect_equal, when info is reported.Expected: if object is zero length, the user's info string should be used, in line with other testthat expectations.
Maybe related to #100