{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/testthat/issues/306","labels_url":"https://api.github.com/repos/hadley/testthat/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/hadley/testthat/issues/306/comments","events_url":"https://api.github.com/repos/hadley/testthat/issues/306/events","html_url":"https://github.com/hadley/testthat/issues/306","id":109651361,"number":306,"title":"expect_equal comparison with NULL gives odd error meassage","user":{"login":"jan-glx","id":1266815,"avatar_url":"https://avatars.githubusercontent.com/u/1266815?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-glx","html_url":"https://github.com/jan-glx","followers_url":"https://api.github.com/users/jan-glx/followers","following_url":"https://api.github.com/users/jan-glx/following{/other_user}","gists_url":"https://api.github.com/users/jan-glx/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-glx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-glx/subscriptions","organizations_url":"https://api.github.com/users/jan-glx/orgs","repos_url":"https://api.github.com/users/jan-glx/repos","events_url":"https://api.github.com/users/jan-glx/events{/privacy}","received_events_url":"https://api.github.com/users/jan-glx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-03T23:22:51Z","updated_at":"2015-10-03T23:22:51Z","closed_at":null,"body":"````\r\ntest_that(\"this test gives an bad error message\",{\r\n    expect_equal(NULL, 1)\r\n})\r\n````\r\nyields\r\n````\r\n==> devtools::test()\r\n\r\nLoading example\r\nTesting example\r\n1\r\nError in vapply(seq_len(n), function(i) { : values must be length 1,\r\n but FUN(X[[1]]) result is length 3\r\nCalls: <Anonymous> ... with_envvar -> force -> <Anonymous> -> <Anonymous> -> vapply\r\nExecution halted\r\n\r\nExited with status 1.\r\n````\r\nwhile it should just fail in my opinion."}}