{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5177","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5177/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5177/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5177/events","html_url":"https://github.com/HaxeFoundation/haxe/pull/5177","id":151309100,"number":5177,"title":"Add possibility to make test fail.","user":{"login":"back2dos","id":509501,"avatar_url":"https://avatars.githubusercontent.com/u/509501?v=3","gravatar_id":"","url":"https://api.github.com/users/back2dos","html_url":"https://github.com/back2dos","followers_url":"https://api.github.com/users/back2dos/followers","following_url":"https://api.github.com/users/back2dos/following{/other_user}","gists_url":"https://api.github.com/users/back2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/back2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/back2dos/subscriptions","organizations_url":"https://api.github.com/users/back2dos/orgs","repos_url":"https://api.github.com/users/back2dos/repos","events_url":"https://api.github.com/users/back2dos/events{/privacy}","received_events_url":"https://api.github.com/users/back2dos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-27T06:30:08Z","updated_at":"2016-04-28T10:53:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/pulls/5177","html_url":"https://github.com/HaxeFoundation/haxe/pull/5177","diff_url":"https://github.com/HaxeFoundation/haxe/pull/5177.diff","patch_url":"https://github.com/HaxeFoundation/haxe/pull/5177.patch"},"body":"I'm often in a situation where I make complex assertions and if they fail, I want to make the test fail. At first I resorted to `assertTrue(false)` then I added the method proposed here to my tests. It was pointed out to me that this a better place for it and I would agree.\r\n\r\nCode reuse fetishists would also implement assertTrue, assertFalse and assertEquals on top of this but I wanted to keep the change minimal."},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/215387012","html_url":"https://github.com/HaxeFoundation/haxe/pull/5177#issuecomment-215387012","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5177","id":215387012,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T10:53:41Z","updated_at":"2016-04-28T10:53:41Z","body":"Good point, hmm..."}}