{"action":"opened","number":139,"pull_request":{"url":"https://api.github.com/repos/isaacg1/pyth/pulls/139","id":41443636,"html_url":"https://github.com/isaacg1/pyth/pull/139","diff_url":"https://github.com/isaacg1/pyth/pull/139.diff","patch_url":"https://github.com/isaacg1/pyth/pull/139.patch","issue_url":"https://api.github.com/repos/isaacg1/pyth/issues/139","number":139,"state":"open","locked":false,"title":"Added test suite feature to interpreter","user":{"login":"Maltysen","id":10355450,"avatar_url":"https://avatars.githubusercontent.com/u/10355450?v=3","gravatar_id":"","url":"https://api.github.com/users/Maltysen","html_url":"https://github.com/Maltysen","followers_url":"https://api.github.com/users/Maltysen/followers","following_url":"https://api.github.com/users/Maltysen/following{/other_user}","gists_url":"https://api.github.com/users/Maltysen/gists{/gist_id}","starred_url":"https://api.github.com/users/Maltysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maltysen/subscriptions","organizations_url":"https://api.github.com/users/Maltysen/orgs","repos_url":"https://api.github.com/users/Maltysen/repos","events_url":"https://api.github.com/users/Maltysen/events{/privacy}","received_events_url":"https://api.github.com/users/Maltysen/received_events","type":"User","site_admin":false},"body":"Adding scaffolding to existing code to make test suites is annoying, messes up byte counts, and does not work with multi-line inputs. So I added that to the online interpreter.\r\n\r\nAbove the normal input textbox, there is a gray link which says \"Test Suite ->\":\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10355450/9033312/0155dd76-3994-11e5-8603-1e04dddb53a6.png)\r\n\r\nThen when you click on that, it changes the textbox to another one and adds numeric input for input size:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10355450/9033338/2cd19918-3994-11e5-8706-64bab45a4864.png)\r\n\r\nWhen you run it, it runs all of them, and then returns their outputs, separated by linebreaks. The debug parameter is only honored on the first test, the rest all have no debug:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10355450/9033377/72d10304-3994-11e5-903f-f3b59bb31318.png)\r\n\r\n\r\nThe permalinks all also work pretty naturally. Both textboxes are preserved over permalinks, though obviously, it also preserves which one was the current one.\r\n\r\nInternally, I have encapsulated the code running in a function, and made two separate handlers for regular submissions and test suites.\r\n\r\nI have hosted a live copy on my Koding VM here: http://maltysen.koding.io/ to play around on for bugs / suggestions before deciding on the pull request. I have not done animations for the boxes, but if you think its necessary, I can add it.","created_at":"2015-08-03T08:12:02Z","updated_at":"2015-08-03T08:12:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/isaacg1/pyth/pulls/139/commits","review_comments_url":"https://api.github.com/repos/isaacg1/pyth/pulls/139/comments","review_comment_url":"https://api.github.com/repos/isaacg1/pyth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/isaacg1/pyth/issues/139/comments","statuses_url":"https://api.github.com/repos/isaacg1/pyth/statuses/f6f3261ce485f74f60a4a171f4b5b2fbbd8a2e89","head":{"label":"Maltysen:master","ref":"master","sha":"f6f3261ce485f74f60a4a171f4b5b2fbbd8a2e89","user":{"login":"Maltysen","id":10355450,"avatar_url":"https://avatars.githubusercontent.com/u/10355450?v=3","gravatar_id":"","url":"https://api.github.com/users/Maltysen","html_url":"https://github.com/Maltysen","followers_url":"https://api.github.com/users/Maltysen/followers","following_url":"https://api.github.com/users/Maltysen/following{/other_user}","gists_url":"https://api.github.com/users/Maltysen/gists{/gist_id}","starred_url":"https://api.github.com/users/Maltysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maltysen/subscriptions","organizations_url":"https://api.github.com/users/Maltysen/orgs","repos_url":"https://api.github.com/users/Maltysen/repos","events_url":"https://api.github.com/users/Maltysen/events{/privacy}","received_events_url":"https://api.github.com/users/Maltysen/received_events","type":"User","site_admin":false},"repo":{"id":40060400,"name":"pyth","full_name":"Maltysen/pyth","owner":{"login":"Maltysen","id":10355450,"avatar_url":"https://avatars.githubusercontent.com/u/10355450?v=3","gravatar_id":"","url":"https://api.github.com/users/Maltysen","html_url":"https://github.com/Maltysen","followers_url":"https://api.github.com/users/Maltysen/followers","following_url":"https://api.github.com/users/Maltysen/following{/other_user}","gists_url":"https://api.github.com/users/Maltysen/gists{/gist_id}","starred_url":"https://api.github.com/users/Maltysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maltysen/subscriptions","organizations_url":"https://api.github.com/users/Maltysen/orgs","repos_url":"https://api.github.com/users/Maltysen/repos","events_url":"https://api.github.com/users/Maltysen/events{/privacy}","received_events_url":"https://api.github.com/users/Maltysen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Maltysen/pyth","description":"Pyth, an extremely concise language. Try it here:","fork":true,"url":"https://api.github.com/repos/Maltysen/pyth","forks_url":"https://api.github.com/repos/Maltysen/pyth/forks","keys_url":"https://api.github.com/repos/Maltysen/pyth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maltysen/pyth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maltysen/pyth/teams","hooks_url":"https://api.github.com/repos/Maltysen/pyth/hooks","issue_events_url":"https://api.github.com/repos/Maltysen/pyth/issues/events{/number}","events_url":"https://api.github.com/repos/Maltysen/pyth/events","assignees_url":"https://api.github.com/repos/Maltysen/pyth/assignees{/user}","branches_url":"https://api.github.com/repos/Maltysen/pyth/branches{/branch}","tags_url":"https://api.github.com/repos/Maltysen/pyth/tags","blobs_url":"https://api.github.com/repos/Maltysen/pyth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maltysen/pyth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maltysen/pyth/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maltysen/pyth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maltysen/pyth/statuses/{sha}","languages_url":"https://api.github.com/repos/Maltysen/pyth/languages","stargazers_url":"https://api.github.com/repos/Maltysen/pyth/stargazers","contributors_url":"https://api.github.com/repos/Maltysen/pyth/contributors","subscribers_url":"https://api.github.com/repos/Maltysen/pyth/subscribers","subscription_url":"https://api.github.com/repos/Maltysen/pyth/subscription","commits_url":"https://api.github.com/repos/Maltysen/pyth/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maltysen/pyth/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maltysen/pyth/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maltysen/pyth/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maltysen/pyth/contents/{+path}","compare_url":"https://api.github.com/repos/Maltysen/pyth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maltysen/pyth/merges","archive_url":"https://api.github.com/repos/Maltysen/pyth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maltysen/pyth/downloads","issues_url":"https://api.github.com/repos/Maltysen/pyth/issues{/number}","pulls_url":"https://api.github.com/repos/Maltysen/pyth/pulls{/number}","milestones_url":"https://api.github.com/repos/Maltysen/pyth/milestones{/number}","notifications_url":"https://api.github.com/repos/Maltysen/pyth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maltysen/pyth/labels{/name}","releases_url":"https://api.github.com/repos/Maltysen/pyth/releases{/id}","created_at":"2015-08-01T21:22:35Z","updated_at":"2015-08-01T21:22:36Z","pushed_at":"2015-08-03T07:54:45Z","git_url":"git://github.com/Maltysen/pyth.git","ssh_url":"git@github.com:Maltysen/pyth.git","clone_url":"https://github.com/Maltysen/pyth.git","svn_url":"https://github.com/Maltysen/pyth","homepage":"https://pyth.herokuapp.com/","size":2205,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"isaacg1:master","ref":"master","sha":"1bbe8405f9b4f4ef5db05be203ccf1757fcbac10","user":{"login":"isaacg1","id":8034059,"avatar_url":"https://avatars.githubusercontent.com/u/8034059?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacg1","html_url":"https://github.com/isaacg1","followers_url":"https://api.github.com/users/isaacg1/followers","following_url":"https://api.github.com/users/isaacg1/following{/other_user}","gists_url":"https://api.github.com/users/isaacg1/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacg1/subscriptions","organizations_url":"https://api.github.com/users/isaacg1/orgs","repos_url":"https://api.github.com/users/isaacg1/repos","events_url":"https://api.github.com/users/isaacg1/events{/privacy}","received_events_url":"https://api.github.com/users/isaacg1/received_events","type":"User","site_admin":false},"repo":{"id":21377779,"name":"pyth","full_name":"isaacg1/pyth","owner":{"login":"isaacg1","id":8034059,"avatar_url":"https://avatars.githubusercontent.com/u/8034059?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacg1","html_url":"https://github.com/isaacg1","followers_url":"https://api.github.com/users/isaacg1/followers","following_url":"https://api.github.com/users/isaacg1/following{/other_user}","gists_url":"https://api.github.com/users/isaacg1/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacg1/subscriptions","organizations_url":"https://api.github.com/users/isaacg1/orgs","repos_url":"https://api.github.com/users/isaacg1/repos","events_url":"https://api.github.com/users/isaacg1/events{/privacy}","received_events_url":"https://api.github.com/users/isaacg1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isaacg1/pyth","description":"Pyth, an extremely concise language. Try it here:","fork":false,"url":"https://api.github.com/repos/isaacg1/pyth","forks_url":"https://api.github.com/repos/isaacg1/pyth/forks","keys_url":"https://api.github.com/repos/isaacg1/pyth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isaacg1/pyth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isaacg1/pyth/teams","hooks_url":"https://api.github.com/repos/isaacg1/pyth/hooks","issue_events_url":"https://api.github.com/repos/isaacg1/pyth/issues/events{/number}","events_url":"https://api.github.com/repos/isaacg1/pyth/events","assignees_url":"https://api.github.com/repos/isaacg1/pyth/assignees{/user}","branches_url":"https://api.github.com/repos/isaacg1/pyth/branches{/branch}","tags_url":"https://api.github.com/repos/isaacg1/pyth/tags","blobs_url":"https://api.github.com/repos/isaacg1/pyth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isaacg1/pyth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isaacg1/pyth/git/refs{/sha}","trees_url":"https://api.github.com/repos/isaacg1/pyth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isaacg1/pyth/statuses/{sha}","languages_url":"https://api.github.com/repos/isaacg1/pyth/languages","stargazers_url":"https://api.github.com/repos/isaacg1/pyth/stargazers","contributors_url":"https://api.github.com/repos/isaacg1/pyth/contributors","subscribers_url":"https://api.github.com/repos/isaacg1/pyth/subscribers","subscription_url":"https://api.github.com/repos/isaacg1/pyth/subscription","commits_url":"https://api.github.com/repos/isaacg1/pyth/commits{/sha}","git_commits_url":"https://api.github.com/repos/isaacg1/pyth/git/commits{/sha}","comments_url":"https://api.github.com/repos/isaacg1/pyth/comments{/number}","issue_comment_url":"https://api.github.com/repos/isaacg1/pyth/issues/comments{/number}","contents_url":"https://api.github.com/repos/isaacg1/pyth/contents/{+path}","compare_url":"https://api.github.com/repos/isaacg1/pyth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isaacg1/pyth/merges","archive_url":"https://api.github.com/repos/isaacg1/pyth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isaacg1/pyth/downloads","issues_url":"https://api.github.com/repos/isaacg1/pyth/issues{/number}","pulls_url":"https://api.github.com/repos/isaacg1/pyth/pulls{/number}","milestones_url":"https://api.github.com/repos/isaacg1/pyth/milestones{/number}","notifications_url":"https://api.github.com/repos/isaacg1/pyth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isaacg1/pyth/labels{/name}","releases_url":"https://api.github.com/repos/isaacg1/pyth/releases{/id}","created_at":"2014-07-01T06:44:21Z","updated_at":"2015-07-29T04:05:06Z","pushed_at":"2015-07-31T05:26:56Z","git_url":"git://github.com/isaacg1/pyth.git","ssh_url":"git@github.com:isaacg1/pyth.git","clone_url":"https://github.com/isaacg1/pyth.git","svn_url":"https://github.com/isaacg1/pyth","homepage":"https://pyth.herokuapp.com/","size":2205,"stargazers_count":57,"watchers_count":57,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":8,"forks":9,"open_issues":8,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/isaacg1/pyth/pulls/139"},"html":{"href":"https://github.com/isaacg1/pyth/pull/139"},"issue":{"href":"https://api.github.com/repos/isaacg1/pyth/issues/139"},"comments":{"href":"https://api.github.com/repos/isaacg1/pyth/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/isaacg1/pyth/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/isaacg1/pyth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/isaacg1/pyth/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/isaacg1/pyth/statuses/f6f3261ce485f74f60a4a171f4b5b2fbbd8a2e89"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":90,"deletions":28,"changed_files":2}}