{"action":"created","comment":{"url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/comments/44871044","id":44871044,"diff_hunk":"@@ -0,0 +1,38 @@\n+require 'minitest/autorun'\n+require 'geometry'\n+\n+class DistanceToTest < MiniTest::Unit::TestCase\n+  include Geometry\n+  # Distance in whole number\n+  def test_distance_to_point2\n+    point1 = Point.new(0,0)\n+    point2 = Point.new(3,4)\n+    assert_equal 5, point1.distance_to(point2)\n+  end\n+  # Distance in decimal\n+  # point 2 is right up\n+  def test_distance_to_point\n+    point1 = Point.new(0,0)\n+    point2 = Point.new(1,1)\n+    assert_equal Math.sqrt(2), point1.distance_to(point2)\n+  end\n+  # Point 2 is left up\n+  def test_distance_to_point2\n+    point1 = Point.new(3,0)\n+    point2 = Point.new(0,4)\n+    assert_equal 5, point1.distance_to(point2)\n+  end\n+  # Point 2 is right below\n+  def test_distance_to_point2\n+    point1 = Point.new(0,4)\n+    point2 = Point.new(3,0)\n+    assert_equal 5, point1.distance_to(point2)\n+  end\n+  # Point 2 is left below\n+  def test_distance_to_point2\n+    point1 = Point.new(3,4)\n+    point2 = Point.new(0,0)","path":"test/point/distance_to_test.rb","position":34,"original_position":34,"commit_id":"d52195f928ce8971f926027efe984f4024d15b6a","original_commit_id":"d52195f928ce8971f926027efe984f4024d15b6a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Space missing after comma.","created_at":"2015-11-15T12:18:42Z","updated_at":"2015-11-15T12:18:42Z","html_url":"https://github.com/DanielVartanov/ruby-geometry/pull/13#discussion_r44871044","pull_request_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/comments/44871044"},"html":{"href":"https://github.com/DanielVartanov/ruby-geometry/pull/13#discussion_r44871044"},"pull_request":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13","id":50745432,"html_url":"https://github.com/DanielVartanov/ruby-geometry/pull/13","diff_url":"https://github.com/DanielVartanov/ruby-geometry/pull/13.diff","patch_url":"https://github.com/DanielVartanov/ruby-geometry/pull/13.patch","issue_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/13","number":13,"state":"open","locked":false,"title":"distances","user":{"login":"gavit","id":85451,"avatar_url":"https://avatars.githubusercontent.com/u/85451?v=3","gravatar_id":"","url":"https://api.github.com/users/gavit","html_url":"https://github.com/gavit","followers_url":"https://api.github.com/users/gavit/followers","following_url":"https://api.github.com/users/gavit/following{/other_user}","gists_url":"https://api.github.com/users/gavit/gists{/gist_id}","starred_url":"https://api.github.com/users/gavit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavit/subscriptions","organizations_url":"https://api.github.com/users/gavit/orgs","repos_url":"https://api.github.com/users/gavit/repos","events_url":"https://api.github.com/users/gavit/events{/privacy}","received_events_url":"https://api.github.com/users/gavit/received_events","type":"User","site_admin":false},"body":"Added point#distance_to\r\nAdded line#length","created_at":"2015-11-15T12:18:37Z","updated_at":"2015-11-15T12:18:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9ece8d6531d6cb227c5450f95c841e29e1ab95a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13/commits","review_comments_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13/comments","review_comment_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/13/comments","statuses_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/statuses/d52195f928ce8971f926027efe984f4024d15b6a","head":{"label":"IQreate:master","ref":"master","sha":"d52195f928ce8971f926027efe984f4024d15b6a","user":{"login":"IQreate","id":6389708,"avatar_url":"https://avatars.githubusercontent.com/u/6389708?v=3","gravatar_id":"","url":"https://api.github.com/users/IQreate","html_url":"https://github.com/IQreate","followers_url":"https://api.github.com/users/IQreate/followers","following_url":"https://api.github.com/users/IQreate/following{/other_user}","gists_url":"https://api.github.com/users/IQreate/gists{/gist_id}","starred_url":"https://api.github.com/users/IQreate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IQreate/subscriptions","organizations_url":"https://api.github.com/users/IQreate/orgs","repos_url":"https://api.github.com/users/IQreate/repos","events_url":"https://api.github.com/users/IQreate/events{/privacy}","received_events_url":"https://api.github.com/users/IQreate/received_events","type":"Organization","site_admin":false},"repo":{"id":46180571,"name":"ruby-geometry","full_name":"IQreate/ruby-geometry","owner":{"login":"IQreate","id":6389708,"avatar_url":"https://avatars.githubusercontent.com/u/6389708?v=3","gravatar_id":"","url":"https://api.github.com/users/IQreate","html_url":"https://github.com/IQreate","followers_url":"https://api.github.com/users/IQreate/followers","following_url":"https://api.github.com/users/IQreate/following{/other_user}","gists_url":"https://api.github.com/users/IQreate/gists{/gist_id}","starred_url":"https://api.github.com/users/IQreate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IQreate/subscriptions","organizations_url":"https://api.github.com/users/IQreate/orgs","repos_url":"https://api.github.com/users/IQreate/repos","events_url":"https://api.github.com/users/IQreate/events{/privacy}","received_events_url":"https://api.github.com/users/IQreate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IQreate/ruby-geometry","description":"Simple geometry classes and algorithms in Ruby","fork":true,"url":"https://api.github.com/repos/IQreate/ruby-geometry","forks_url":"https://api.github.com/repos/IQreate/ruby-geometry/forks","keys_url":"https://api.github.com/repos/IQreate/ruby-geometry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IQreate/ruby-geometry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IQreate/ruby-geometry/teams","hooks_url":"https://api.github.com/repos/IQreate/ruby-geometry/hooks","issue_events_url":"https://api.github.com/repos/IQreate/ruby-geometry/issues/events{/number}","events_url":"https://api.github.com/repos/IQreate/ruby-geometry/events","assignees_url":"https://api.github.com/repos/IQreate/ruby-geometry/assignees{/user}","branches_url":"https://api.github.com/repos/IQreate/ruby-geometry/branches{/branch}","tags_url":"https://api.github.com/repos/IQreate/ruby-geometry/tags","blobs_url":"https://api.github.com/repos/IQreate/ruby-geometry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IQreate/ruby-geometry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IQreate/ruby-geometry/git/refs{/sha}","trees_url":"https://api.github.com/repos/IQreate/ruby-geometry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IQreate/ruby-geometry/statuses/{sha}","languages_url":"https://api.github.com/repos/IQreate/ruby-geometry/languages","stargazers_url":"https://api.github.com/repos/IQreate/ruby-geometry/stargazers","contributors_url":"https://api.github.com/repos/IQreate/ruby-geometry/contributors","subscribers_url":"https://api.github.com/repos/IQreate/ruby-geometry/subscribers","subscription_url":"https://api.github.com/repos/IQreate/ruby-geometry/subscription","commits_url":"https://api.github.com/repos/IQreate/ruby-geometry/commits{/sha}","git_commits_url":"https://api.github.com/repos/IQreate/ruby-geometry/git/commits{/sha}","comments_url":"https://api.github.com/repos/IQreate/ruby-geometry/comments{/number}","issue_comment_url":"https://api.github.com/repos/IQreate/ruby-geometry/issues/comments{/number}","contents_url":"https://api.github.com/repos/IQreate/ruby-geometry/contents/{+path}","compare_url":"https://api.github.com/repos/IQreate/ruby-geometry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IQreate/ruby-geometry/merges","archive_url":"https://api.github.com/repos/IQreate/ruby-geometry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IQreate/ruby-geometry/downloads","issues_url":"https://api.github.com/repos/IQreate/ruby-geometry/issues{/number}","pulls_url":"https://api.github.com/repos/IQreate/ruby-geometry/pulls{/number}","milestones_url":"https://api.github.com/repos/IQreate/ruby-geometry/milestones{/number}","notifications_url":"https://api.github.com/repos/IQreate/ruby-geometry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IQreate/ruby-geometry/labels{/name}","releases_url":"https://api.github.com/repos/IQreate/ruby-geometry/releases{/id}","created_at":"2015-11-14T15:47:26Z","updated_at":"2015-11-14T15:47:27Z","pushed_at":"2015-11-15T12:17:43Z","git_url":"git://github.com/IQreate/ruby-geometry.git","ssh_url":"git@github.com:IQreate/ruby-geometry.git","clone_url":"https://github.com/IQreate/ruby-geometry.git","svn_url":"https://github.com/IQreate/ruby-geometry","homepage":"","size":275,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":0,"default_branch":"master"}},"base":{"label":"DanielVartanov:master","ref":"master","sha":"3ae4d97d2ccf49614964583eac9a071aa86d2764","user":{"login":"DanielVartanov","id":21388,"avatar_url":"https://avatars.githubusercontent.com/u/21388?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielVartanov","html_url":"https://github.com/DanielVartanov","followers_url":"https://api.github.com/users/DanielVartanov/followers","following_url":"https://api.github.com/users/DanielVartanov/following{/other_user}","gists_url":"https://api.github.com/users/DanielVartanov/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielVartanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielVartanov/subscriptions","organizations_url":"https://api.github.com/users/DanielVartanov/orgs","repos_url":"https://api.github.com/users/DanielVartanov/repos","events_url":"https://api.github.com/users/DanielVartanov/events{/privacy}","received_events_url":"https://api.github.com/users/DanielVartanov/received_events","type":"User","site_admin":false},"repo":{"id":44566,"name":"ruby-geometry","full_name":"DanielVartanov/ruby-geometry","owner":{"login":"DanielVartanov","id":21388,"avatar_url":"https://avatars.githubusercontent.com/u/21388?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielVartanov","html_url":"https://github.com/DanielVartanov","followers_url":"https://api.github.com/users/DanielVartanov/followers","following_url":"https://api.github.com/users/DanielVartanov/following{/other_user}","gists_url":"https://api.github.com/users/DanielVartanov/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielVartanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielVartanov/subscriptions","organizations_url":"https://api.github.com/users/DanielVartanov/orgs","repos_url":"https://api.github.com/users/DanielVartanov/repos","events_url":"https://api.github.com/users/DanielVartanov/events{/privacy}","received_events_url":"https://api.github.com/users/DanielVartanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanielVartanov/ruby-geometry","description":"Simple geometry classes and algorithms in Ruby","fork":false,"url":"https://api.github.com/repos/DanielVartanov/ruby-geometry","forks_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/forks","keys_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/teams","hooks_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/hooks","issue_events_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/events{/number}","events_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/events","assignees_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/assignees{/user}","branches_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/branches{/branch}","tags_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/tags","blobs_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/statuses/{sha}","languages_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/languages","stargazers_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/stargazers","contributors_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/contributors","subscribers_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/subscribers","subscription_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/subscription","commits_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/contents/{+path}","compare_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/merges","archive_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/downloads","issues_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues{/number}","pulls_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls{/number}","milestones_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/milestones{/number}","notifications_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/labels{/name}","releases_url":"https://api.github.com/repos/DanielVartanov/ruby-geometry/releases{/id}","created_at":"2008-08-21T11:43:10Z","updated_at":"2015-11-05T20:42:01Z","pushed_at":"2015-11-15T12:18:37Z","git_url":"git://github.com/DanielVartanov/ruby-geometry.git","ssh_url":"git@github.com:DanielVartanov/ruby-geometry.git","clone_url":"https://github.com/DanielVartanov/ruby-geometry.git","svn_url":"https://github.com/DanielVartanov/ruby-geometry","homepage":"","size":275,"stargazers_count":58,"watchers_count":58,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":4,"forks":25,"open_issues":4,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13"},"html":{"href":"https://github.com/DanielVartanov/ruby-geometry/pull/13"},"issue":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/13"},"comments":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/DanielVartanov/ruby-geometry/statuses/d52195f928ce8971f926027efe984f4024d15b6a"}}}}