{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/66297928","id":66297928,"diff_hunk":"@@ -253,3 +253,9 @@ def test_issue_4149():\n     assert floor(3 + pi*I + y*I) == 3 + floor(pi + y)*I\n     assert floor(3*I + pi*I + y*I) == floor(3 + pi + y)*I\n     assert floor(3 + E + pi*I + y*I) == 5 + floor(pi + y)*I\n+\n+def test_issue_11207():\n+    assert floor(floor(x)) == x","path":"sympy/functions/elementary/tests/test_integers.py","position":null,"original_position":6,"commit_id":"598f81636e0213678f072de37142c73e4ba3b1db","original_commit_id":"623506cc357260f17a83bb977c60b3609c0e92de","user":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"body":"Fixed the test and code.","created_at":"2016-06-08T17:15:21Z","updated_at":"2016-06-08T17:15:21Z","html_url":"https://github.com/sympy/sympy/pull/11210#discussion_r66297928","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/11210","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/66297928"},"html":{"href":"https://github.com/sympy/sympy/pull/11210#discussion_r66297928"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11210"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11210","id":73007416,"html_url":"https://github.com/sympy/sympy/pull/11210","diff_url":"https://github.com/sympy/sympy/pull/11210.diff","patch_url":"https://github.com/sympy/sympy/pull/11210.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11210","number":11210,"state":"open","locked":false,"title":"Improving Floor and Ceiling functions","user":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"body":"This is fix for #11207 . Added test cases for floor and ceiling instances in their own indivdual class.\r\n\r\n#### Previous output:\r\n\r\n```python\r\n>>> from sympy import * \r\n>>> from sympy.abc import x\r\n>>> floor(ceiling(x))\r\nfloor(ceiling(x))\r\n>>> floor(floor(x))\r\nfloor(floor(x))\r\n>>> ceiling(ceiling(x))\r\nceiling(ceiling(x))\r\n>>> ceiling(floor(x))\r\nceiling(floor(x))\r\n```\r\n\r\n#### Output after this PR:\r\n\r\n```python\r\n>>> from sympy import * \r\n>>> from sympy.abc import x\r\n>>> floor(ceiling(x))\r\nceiling(x)\r\n>>> floor(floor(x))\r\nfloor(x)\r\n>>> ceiling(ceiling(x))\r\nceiling(x)\r\n>>> ceiling(floor(x))\r\nfloor(x)\r\n```\r\n\r\n* Tests are added.","created_at":"2016-06-08T08:45:48Z","updated_at":"2016-06-08T17:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25f5a682e6d07d387399e3eddc458a7b9de06979","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/11210/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/11210/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11210/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/598f81636e0213678f072de37142c73e4ba3b1db","head":{"label":"parsoyaarihant:floor","ref":"floor","sha":"598f81636e0213678f072de37142c73e4ba3b1db","user":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"repo":{"id":52705541,"name":"sympy","full_name":"parsoyaarihant/sympy","owner":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parsoyaarihant/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/parsoyaarihant/sympy","forks_url":"https://api.github.com/repos/parsoyaarihant/sympy/forks","keys_url":"https://api.github.com/repos/parsoyaarihant/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parsoyaarihant/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parsoyaarihant/sympy/teams","hooks_url":"https://api.github.com/repos/parsoyaarihant/sympy/hooks","issue_events_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/parsoyaarihant/sympy/events","assignees_url":"https://api.github.com/repos/parsoyaarihant/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/parsoyaarihant/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/parsoyaarihant/sympy/tags","blobs_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parsoyaarihant/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/parsoyaarihant/sympy/languages","stargazers_url":"https://api.github.com/repos/parsoyaarihant/sympy/stargazers","contributors_url":"https://api.github.com/repos/parsoyaarihant/sympy/contributors","subscribers_url":"https://api.github.com/repos/parsoyaarihant/sympy/subscribers","subscription_url":"https://api.github.com/repos/parsoyaarihant/sympy/subscription","commits_url":"https://api.github.com/repos/parsoyaarihant/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/parsoyaarihant/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/parsoyaarihant/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/parsoyaarihant/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parsoyaarihant/sympy/merges","archive_url":"https://api.github.com/repos/parsoyaarihant/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parsoyaarihant/sympy/downloads","issues_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/parsoyaarihant/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/parsoyaarihant/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/parsoyaarihant/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parsoyaarihant/sympy/labels{/name}","releases_url":"https://api.github.com/repos/parsoyaarihant/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/parsoyaarihant/sympy/deployments","created_at":"2016-02-28T05:02:11Z","updated_at":"2016-02-28T05:02:17Z","pushed_at":"2016-06-08T17:12:32Z","git_url":"git://github.com/parsoyaarihant/sympy.git","ssh_url":"git@github.com:parsoyaarihant/sympy.git","clone_url":"https://github.com/parsoyaarihant/sympy.git","svn_url":"https://github.com/parsoyaarihant/sympy","homepage":"http://sympy.org/","size":77735,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"248a19ac80cb98c12787c1eea4403aff91c21083","user":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/sympy/sympy/deployments","created_at":"2010-04-30T20:37:14Z","updated_at":"2016-06-08T13:44:03Z","pushed_at":"2016-06-08T17:12:33Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"http://sympy.org/","size":118416,"stargazers_count":2903,"watchers_count":2903,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1479,"mirror_url":null,"open_issues_count":2379,"forks":1479,"open_issues":2379,"watchers":2903,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11210"},"html":{"href":"https://github.com/sympy/sympy/pull/11210"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/11210"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/11210/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11210/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11210/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/598f81636e0213678f072de37142c73e4ba3b1db"}}}}
{"actor":{"display_login":"parsoyaarihant"}}