{"action":"created","comment":{"url":"https://api.github.com/repos/laboon/JavaLife/pulls/comments/27906311","id":27906311,"diff_hunk":"@@ -0,0 +1,133 @@\n+/*\n+ * To change this license header, choose License Headers in Project Properties.\n+ * To change this template file, choose Tools | Templates\n+ * and open the template in the editor.\n+ */\n+\n+import org.junit.After;\n+import org.junit.AfterClass;\n+import org.junit.Before;\n+import org.junit.BeforeClass;\n+import org.junit.Test;\n+import static org.junit.Assert.*;\n+import com.laboon.*;\n+\n+/**\n+ *\n+ * @author micha_000\n+ */\n+public class toStringTests {\n+    \n+    //Creates a new world with a 10 by 10 grid, checks to see if the first row\n+    //displays the correct number of columns\n+    @Test\n+    public void checkingColumnValues10() \n+    {\n+        World world = new World (10, 4, 30);\n+        \n+        String firstRow = world.toString().split(\"\\n\")[0];\n+        assertEquals(firstRow, \"  0123456789\");\n+    }    \n+\n+    //Creates a new world with a 15 by 15 grid, checks to see if the first row\n+    //displays the correct number of columns\n+    @Test\n+    public void checkingColumnValues15() \n+    {\n+        World world = new World (15, 4, 30);\n+        \n+        String firstRow = world.toString().split(\"\\n\")[0];\n+        assertEquals(firstRow, \"  012345678901234\");\n+    }          \n+    \n+    //Creates a new world with a 20 by 20 grid, checks to see if the first row\n+    //displays the correct number of columns    \n+    @Test\n+    public void checkingColumnValues20() \n+    {\n+        World world = new World (20, 4, 30);\n+        \n+        String firstRow = world.toString().split(\"\\n\")[0];\n+        assertEquals(firstRow, \"  01234567890123456789\");\n+    }    \n+      \n+    //Creates a new world with a 1 by 1 grid, checks to see if the original and\n+    //modified toString methods are equal. \n+    @Test\n+    public void checkingMap1()\n+    {\n+        World world = new World (1, 5, 30);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }\n+\n+    //Creates a new world with a 10 by 10 grid, checks to see if the original and\n+    //modified toString methods are equal.     \n+    @Test\n+    public void checkingMap10()\n+    {\n+        World world = new World (10, 5, 30);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }    \n+\n+    //Creates a new world with a 30 by 30 grid, checks to see if the original and\n+    //modified toString methods are equal.     \n+    @Test\n+    public void checkingMap30()\n+    {\n+        World world = new World (30, 6, 40);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }    \n+\n+    //Creates a new world with a 1 by 1 grid, checks to see if the original and\n+    //modified toString methods are equal.     \n+    @Test\n+    public void checkingMap100()\n+    {\n+        World world = new World (100, 6, 40);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }            \n+\n+    \n+    //Creates a new world with a 100 by 100 grid, checks to see if the original and\n+    //modified toString methods are equal with an empty map     \n+    @Test\n+    public void checkingMapEmpty()\n+    {\n+        World world = new World (100, 6, 0);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }    \n+\n+    //Creates a new world with a 100 by 100 grid, checks to see if the original and\n+    //modified toString methods are equal with a full map\n+    @Test\n+    public void checkingMapFull()\n+    {\n+        World world = new World (30, 6, 100);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());        \n+    }    \n+\n+    //Creates a new world with a 30 by 30 grid, checks to see if the original and\n+    //modified toString methods are equal with a map initially 20% full.\n+    //Goes through a 1000 iteration comparing the original and modified toString Methods\n+    @Test\n+    public void checkingMapIterate()\n+    {\n+        World world = new World (30, 6, 20);\n+        \n+        assertEquals(world.toString(), world.toStringOriginal());  \n+        \n+        for(int i = 0; i < 1000; i++)\n+        {\n+            world = world.iterate();\n+            assertEquals(world.toString(), world.toStringOriginal());  \n+        }\n+    }        \n+\n+    \n+}","path":"test/toStringTests.java","position":133,"original_position":133,"commit_id":"38be6a7cbbbb9ba869d0583f34b873436de01290","original_commit_id":"38be6a7cbbbb9ba869d0583f34b873436de01290","user":{"login":"laboon","id":1417717,"avatar_url":"https://avatars.githubusercontent.com/u/1417717?v=3","gravatar_id":"","url":"https://api.github.com/users/laboon","html_url":"https://github.com/laboon","followers_url":"https://api.github.com/users/laboon/followers","following_url":"https://api.github.com/users/laboon/following{/other_user}","gists_url":"https://api.github.com/users/laboon/gists{/gist_id}","starred_url":"https://api.github.com/users/laboon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laboon/subscriptions","organizations_url":"https://api.github.com/users/laboon/orgs","repos_url":"https://api.github.com/users/laboon/repos","events_url":"https://api.github.com/users/laboon/events{/privacy}","received_events_url":"https://api.github.com/users/laboon/received_events","type":"User","site_admin":false},"body":"Edge cases?","created_at":"2015-04-07T18:29:39Z","updated_at":"2015-04-07T18:29:39Z","html_url":"https://github.com/laboon/JavaLife/pull/35#discussion_r27906311","pull_request_url":"https://api.github.com/repos/laboon/JavaLife/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/comments/27906311"},"html":{"href":"https://github.com/laboon/JavaLife/pull/35#discussion_r27906311"},"pull_request":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/laboon/JavaLife/pulls/35","id":32370113,"html_url":"https://github.com/laboon/JavaLife/pull/35","diff_url":"https://github.com/laboon/JavaLife/pull/35.diff","patch_url":"https://github.com/laboon/JavaLife/pull/35.patch","issue_url":"https://api.github.com/repos/laboon/JavaLife/issues/35","number":35,"state":"open","locked":false,"title":"Michael Kudlaty Deliverable 4 - JavaLife","user":{"login":"kuds","id":5710968,"avatar_url":"https://avatars.githubusercontent.com/u/5710968?v=3","gravatar_id":"","url":"https://api.github.com/users/kuds","html_url":"https://github.com/kuds","followers_url":"https://api.github.com/users/kuds/followers","following_url":"https://api.github.com/users/kuds/following{/other_user}","gists_url":"https://api.github.com/users/kuds/gists{/gist_id}","starred_url":"https://api.github.com/users/kuds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuds/subscriptions","organizations_url":"https://api.github.com/users/kuds/orgs","repos_url":"https://api.github.com/users/kuds/repos","events_url":"https://api.github.com/users/kuds/events{/privacy}","received_events_url":"https://api.github.com/users/kuds/received_events","type":"User","site_admin":false},"body":"Pull request includes the summary, all necessary java files and the file containing the unit test.","created_at":"2015-03-31T21:55:16Z","updated_at":"2015-04-07T18:29:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8bb03788194eac7e821fb250600ec8a9e88c6dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laboon/JavaLife/pulls/35/commits","review_comments_url":"https://api.github.com/repos/laboon/JavaLife/pulls/35/comments","review_comment_url":"https://api.github.com/repos/laboon/JavaLife/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laboon/JavaLife/issues/35/comments","statuses_url":"https://api.github.com/repos/laboon/JavaLife/statuses/38be6a7cbbbb9ba869d0583f34b873436de01290","head":{"label":"kuds:master","ref":"master","sha":"38be6a7cbbbb9ba869d0583f34b873436de01290","user":{"login":"kuds","id":5710968,"avatar_url":"https://avatars.githubusercontent.com/u/5710968?v=3","gravatar_id":"","url":"https://api.github.com/users/kuds","html_url":"https://github.com/kuds","followers_url":"https://api.github.com/users/kuds/followers","following_url":"https://api.github.com/users/kuds/following{/other_user}","gists_url":"https://api.github.com/users/kuds/gists{/gist_id}","starred_url":"https://api.github.com/users/kuds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuds/subscriptions","organizations_url":"https://api.github.com/users/kuds/orgs","repos_url":"https://api.github.com/users/kuds/repos","events_url":"https://api.github.com/users/kuds/events{/privacy}","received_events_url":"https://api.github.com/users/kuds/received_events","type":"User","site_admin":false},"repo":{"id":33038345,"name":"JavaLife","full_name":"kuds/JavaLife","owner":{"login":"kuds","id":5710968,"avatar_url":"https://avatars.githubusercontent.com/u/5710968?v=3","gravatar_id":"","url":"https://api.github.com/users/kuds","html_url":"https://github.com/kuds","followers_url":"https://api.github.com/users/kuds/followers","following_url":"https://api.github.com/users/kuds/following{/other_user}","gists_url":"https://api.github.com/users/kuds/gists{/gist_id}","starred_url":"https://api.github.com/users/kuds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuds/subscriptions","organizations_url":"https://api.github.com/users/kuds/orgs","repos_url":"https://api.github.com/users/kuds/repos","events_url":"https://api.github.com/users/kuds/events{/privacy}","received_events_url":"https://api.github.com/users/kuds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuds/JavaLife","description":"A (deliberately inefficient) version of Conway's Game of Life","fork":true,"url":"https://api.github.com/repos/kuds/JavaLife","forks_url":"https://api.github.com/repos/kuds/JavaLife/forks","keys_url":"https://api.github.com/repos/kuds/JavaLife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuds/JavaLife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuds/JavaLife/teams","hooks_url":"https://api.github.com/repos/kuds/JavaLife/hooks","issue_events_url":"https://api.github.com/repos/kuds/JavaLife/issues/events{/number}","events_url":"https://api.github.com/repos/kuds/JavaLife/events","assignees_url":"https://api.github.com/repos/kuds/JavaLife/assignees{/user}","branches_url":"https://api.github.com/repos/kuds/JavaLife/branches{/branch}","tags_url":"https://api.github.com/repos/kuds/JavaLife/tags","blobs_url":"https://api.github.com/repos/kuds/JavaLife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuds/JavaLife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuds/JavaLife/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuds/JavaLife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuds/JavaLife/statuses/{sha}","languages_url":"https://api.github.com/repos/kuds/JavaLife/languages","stargazers_url":"https://api.github.com/repos/kuds/JavaLife/stargazers","contributors_url":"https://api.github.com/repos/kuds/JavaLife/contributors","subscribers_url":"https://api.github.com/repos/kuds/JavaLife/subscribers","subscription_url":"https://api.github.com/repos/kuds/JavaLife/subscription","commits_url":"https://api.github.com/repos/kuds/JavaLife/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuds/JavaLife/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuds/JavaLife/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuds/JavaLife/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuds/JavaLife/contents/{+path}","compare_url":"https://api.github.com/repos/kuds/JavaLife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuds/JavaLife/merges","archive_url":"https://api.github.com/repos/kuds/JavaLife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuds/JavaLife/downloads","issues_url":"https://api.github.com/repos/kuds/JavaLife/issues{/number}","pulls_url":"https://api.github.com/repos/kuds/JavaLife/pulls{/number}","milestones_url":"https://api.github.com/repos/kuds/JavaLife/milestones{/number}","notifications_url":"https://api.github.com/repos/kuds/JavaLife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuds/JavaLife/labels{/name}","releases_url":"https://api.github.com/repos/kuds/JavaLife/releases{/id}","created_at":"2015-03-28T15:24:53Z","updated_at":"2015-03-31T21:53:19Z","pushed_at":"2015-03-31T21:53:19Z","git_url":"git://github.com/kuds/JavaLife.git","ssh_url":"git@github.com:kuds/JavaLife.git","clone_url":"https://github.com/kuds/JavaLife.git","svn_url":"https://github.com/kuds/JavaLife","homepage":null,"size":668,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"laboon:master","ref":"master","sha":"37f3026c08c494c9608df43a44793de3a9be2782","user":{"login":"laboon","id":1417717,"avatar_url":"https://avatars.githubusercontent.com/u/1417717?v=3","gravatar_id":"","url":"https://api.github.com/users/laboon","html_url":"https://github.com/laboon","followers_url":"https://api.github.com/users/laboon/followers","following_url":"https://api.github.com/users/laboon/following{/other_user}","gists_url":"https://api.github.com/users/laboon/gists{/gist_id}","starred_url":"https://api.github.com/users/laboon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laboon/subscriptions","organizations_url":"https://api.github.com/users/laboon/orgs","repos_url":"https://api.github.com/users/laboon/repos","events_url":"https://api.github.com/users/laboon/events{/privacy}","received_events_url":"https://api.github.com/users/laboon/received_events","type":"User","site_admin":false},"repo":{"id":32392759,"name":"JavaLife","full_name":"laboon/JavaLife","owner":{"login":"laboon","id":1417717,"avatar_url":"https://avatars.githubusercontent.com/u/1417717?v=3","gravatar_id":"","url":"https://api.github.com/users/laboon","html_url":"https://github.com/laboon","followers_url":"https://api.github.com/users/laboon/followers","following_url":"https://api.github.com/users/laboon/following{/other_user}","gists_url":"https://api.github.com/users/laboon/gists{/gist_id}","starred_url":"https://api.github.com/users/laboon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laboon/subscriptions","organizations_url":"https://api.github.com/users/laboon/orgs","repos_url":"https://api.github.com/users/laboon/repos","events_url":"https://api.github.com/users/laboon/events{/privacy}","received_events_url":"https://api.github.com/users/laboon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laboon/JavaLife","description":"A (deliberately inefficient) version of Conway's Game of Life","fork":false,"url":"https://api.github.com/repos/laboon/JavaLife","forks_url":"https://api.github.com/repos/laboon/JavaLife/forks","keys_url":"https://api.github.com/repos/laboon/JavaLife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laboon/JavaLife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laboon/JavaLife/teams","hooks_url":"https://api.github.com/repos/laboon/JavaLife/hooks","issue_events_url":"https://api.github.com/repos/laboon/JavaLife/issues/events{/number}","events_url":"https://api.github.com/repos/laboon/JavaLife/events","assignees_url":"https://api.github.com/repos/laboon/JavaLife/assignees{/user}","branches_url":"https://api.github.com/repos/laboon/JavaLife/branches{/branch}","tags_url":"https://api.github.com/repos/laboon/JavaLife/tags","blobs_url":"https://api.github.com/repos/laboon/JavaLife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laboon/JavaLife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laboon/JavaLife/git/refs{/sha}","trees_url":"https://api.github.com/repos/laboon/JavaLife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laboon/JavaLife/statuses/{sha}","languages_url":"https://api.github.com/repos/laboon/JavaLife/languages","stargazers_url":"https://api.github.com/repos/laboon/JavaLife/stargazers","contributors_url":"https://api.github.com/repos/laboon/JavaLife/contributors","subscribers_url":"https://api.github.com/repos/laboon/JavaLife/subscribers","subscription_url":"https://api.github.com/repos/laboon/JavaLife/subscription","commits_url":"https://api.github.com/repos/laboon/JavaLife/commits{/sha}","git_commits_url":"https://api.github.com/repos/laboon/JavaLife/git/commits{/sha}","comments_url":"https://api.github.com/repos/laboon/JavaLife/comments{/number}","issue_comment_url":"https://api.github.com/repos/laboon/JavaLife/issues/comments{/number}","contents_url":"https://api.github.com/repos/laboon/JavaLife/contents/{+path}","compare_url":"https://api.github.com/repos/laboon/JavaLife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laboon/JavaLife/merges","archive_url":"https://api.github.com/repos/laboon/JavaLife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laboon/JavaLife/downloads","issues_url":"https://api.github.com/repos/laboon/JavaLife/issues{/number}","pulls_url":"https://api.github.com/repos/laboon/JavaLife/pulls{/number}","milestones_url":"https://api.github.com/repos/laboon/JavaLife/milestones{/number}","notifications_url":"https://api.github.com/repos/laboon/JavaLife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laboon/JavaLife/labels{/name}","releases_url":"https://api.github.com/repos/laboon/JavaLife/releases{/id}","created_at":"2015-03-17T12:45:18Z","updated_at":"2015-03-18T00:27:38Z","pushed_at":"2015-04-06T00:25:16Z","git_url":"git://github.com/laboon/JavaLife.git","ssh_url":"git@github.com:laboon/JavaLife.git","clone_url":"https://github.com/laboon/JavaLife.git","svn_url":"https://github.com/laboon/JavaLife","homepage":null,"size":1989,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":36,"forks":36,"open_issues":36,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/35"},"html":{"href":"https://github.com/laboon/JavaLife/pull/35"},"issue":{"href":"https://api.github.com/repos/laboon/JavaLife/issues/35"},"comments":{"href":"https://api.github.com/repos/laboon/JavaLife/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laboon/JavaLife/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/laboon/JavaLife/statuses/38be6a7cbbbb9ba869d0583f34b873436de01290"}}}}