{"action":"closed","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1413","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1413/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1413/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1413/events","html_url":"https://github.com/ramda/ramda/issues/1413","id":108751747,"number":1413,"title":"When you pass a string to R.test instead of a regex, it always returns true","user":{"login":"albrow","id":800857,"avatar_url":"https://avatars.githubusercontent.com/u/800857?v=3","gravatar_id":"","url":"https://api.github.com/users/albrow","html_url":"https://github.com/albrow","followers_url":"https://api.github.com/users/albrow/followers","following_url":"https://api.github.com/users/albrow/following{/other_user}","gists_url":"https://api.github.com/users/albrow/gists{/gist_id}","starred_url":"https://api.github.com/users/albrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albrow/subscriptions","organizations_url":"https://api.github.com/users/albrow/orgs","repos_url":"https://api.github.com/users/albrow/repos","events_url":"https://api.github.com/users/albrow/events{/privacy}","received_events_url":"https://api.github.com/users/albrow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T21:35:49Z","updated_at":"2015-10-06T02:57:42Z","closed_at":"2015-10-06T02:57:42Z","body":"The following code returns true:\r\n\r\n```javascript\r\nR.test('foo', 'bar')\r\n```\r\n\r\n[Here it is in the repl](http://bit.ly/1Jz66KK).\r\n\r\nThis seems like a pretty easy mistake to make, and I think the appropriate behavior is to throw an exception and point out that the first argument is not the correct type.\r\n\r\n"}}