{"action":"closed","issue":{"url":"https://api.github.com/repos/Test-More/test-more/issues/599","labels_url":"https://api.github.com/repos/Test-More/test-more/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/Test-More/test-more/issues/599/comments","events_url":"https://api.github.com/repos/Test-More/test-more/issues/599/events","html_url":"https://github.com/Test-More/test-more/issues/599","id":100569248,"number":599,"title":"regexes do not work in Test::Builder::Tester","user":{"login":"karenetheridge","id":303051,"avatar_url":"https://avatars.githubusercontent.com/u/303051?v=3","gravatar_id":"","url":"https://api.github.com/users/karenetheridge","html_url":"https://github.com/karenetheridge","followers_url":"https://api.github.com/users/karenetheridge/followers","following_url":"https://api.github.com/users/karenetheridge/following{/other_user}","gists_url":"https://api.github.com/users/karenetheridge/gists{/gist_id}","starred_url":"https://api.github.com/users/karenetheridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karenetheridge/subscriptions","organizations_url":"https://api.github.com/users/karenetheridge/orgs","repos_url":"https://api.github.com/users/karenetheridge/repos","events_url":"https://api.github.com/users/karenetheridge/events{/privacy}","received_events_url":"https://api.github.com/users/karenetheridge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-12T15:25:48Z","updated_at":"2015-10-07T03:46:56Z","closed_at":"2015-10-07T03:46:56Z","body":"Test::Builder::Tester apparently supports the use of regexes in `test_out` and `test_err`, but there is no mention of this in the documentation.\r\n\r\nMoreover, regexes don't seem to work:\r\n\r\n```\r\nuse strict;\r\nuse warnings;\r\n\r\nuse Test::More tests => 1;\r\nuse Test::Builder::Tester;\r\n\r\ntest_out(qr/not ok 1/);\r\nfail('this is a failure');\r\ntest_test('fail 1');\r\n```\r\n\r\ngives:\r\n\r\n```\r\n1..1\r\nnot ok 1 - fail 1\r\n#   Failed test 'fail 1'\r\n#   at repro.pl line 9.\r\n# STDOUT is:\r\n# not ok 1 - this is a failure\r\n# \r\n# not:\r\n# (?-xism:not ok 1)\r\n# as expected\r\n# STDERR is:\r\n# #   Failed test 'this is a failure'\r\n# #   at repro.pl line 8.\r\n# \r\n# not:\r\n# \r\n# as expected\r\n```\r\n\r\nThis is the origin of the failing tests in Test::Class.\r\n"}}