{"action":"closed","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/704","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/704/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/704/events","html_url":"https://github.com/cpputest/cpputest/issues/704","id":95144390,"number":704,"title":"Strange test result involving infinity","user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-15T09:22:11Z","updated_at":"2015-08-07T23:44:41Z","closed_at":"2015-08-07T23:44:41Z","body":"Given the following test:\r\n```c++\r\nDOUBLES_EQUAL(std::numeric_limits<double>::infinity(), 1.0d / 0.0d, 0.0d);\r\n```\r\nI get the following result:\r\n```c++\r\nexpected <inf>\r\nbut was  <inf> threshold used was <0>\r\n```\r\nThe problem does not seem related to the threshold used, e.g. it will not go away with, say, a threshold of 1.0d.\r\n\r\nThe same strange result is obtained by doing simply:\r\n```c++\r\nDOUBLES_EQUAL(1.0d / 0.0d, 1.0d / 0.0d, 0.0d);\r\n```"}}