{"action":"created","comment":{"url":"https://api.github.com/repos/Hamelinny/Java/pulls/comments/80392381","id":80392381,"diff_hunk":"@@ -0,0 +1,83 @@\n+/**\n+ * Created by daphne on 19.09.16.\n+ */\n+import org.junit.Test;\n+\n+import static org.junit.Assert.assertFalse;\n+import static org.junit.Assert.assertTrue;\n+\n+public class MyHashMapTest {\n+\n+    @Test\n+    public void simple() {\n+        MyHashMap HashMap = new MyHashMap();\n+        HashMap.put(\"hello\", \"world\");\n+        assertTrue(HashMap.get(\"hello\") == \"world\");\n+\n+    }\n+\n+    @Test\n+    public void withRebuild() {\n+        MyHashMap HashMap = new MyHashMap(2);\n+        HashMap.put(\"hello\", \"world\");\n+        HashMap.put(\"hello\", \"world\");\n+        assertTrue(HashMap.size() == 1);\n+        HashMap.clear();\n+        assertTrue(HashMap.size() == 0);\n+        HashMap.put(\"a\", \"a\");\n+        HashMap.put(\"b\", \"b\");\n+        HashMap.put(\"c\", \"c\");\n+        HashMap.put(\"d\", \"d\");\n+        assertTrue(HashMap.size() == 4);\n+        assertTrue(HashMap.get(\"c\") == \"c\");\n+    }\n+\n+    @Test\n+    public void testContains() {\n+        MyHashMap HashMap = new MyHashMap(100);\n+        HashMap.put(\"\", \"\");\n+        assertTrue(HashMap.contains(\"\"));\n+        HashMap.remove(\"\");\n+        assertFalse(HashMap.contains(\"\"));\n+    }\n+\n+    @Test\n+    public void test1() {\n+        MyHashMap HashMap = new MyHashMap();\n+        HashMap.clear();\n+        HashMap.put(\"\", \"\");\n+        HashMap.put(\"\", \"\");\n+        HashMap.put(\"a\", \"b\");\n+        assertTrue(HashMap.size() == 2);\n+        HashMap.remove(\"\");\n+        assertTrue(HashMap.size() == 1);\n+        HashMap.remove(\"a\");\n+        assertTrue(HashMap.size() == 0);\n+    }\n+\n+    @Test\n+    public void test2() {\n+        MyHashMap HashMap = new MyHashMap();\n+        HashMap.put(\"a\", \"c\");\n+        HashMap.put(\"a\", \"d\");\n+        HashMap.put(\"a\", \"b\");\n+        assertTrue(HashMap.size() == 1);\n+        HashMap.remove(\"\");\n+        assertTrue(HashMap.size() == 1);\n+        HashMap.remove(\"a\");\n+        assertTrue(HashMap.size() == 0);\n+    }\n+\n+    @Test\n+    public void test3() {\n+        MyHashMap HashMap = new MyHashMap();\n+        HashMap.put(\"a\", \"c\");\n+        HashMap.put(\"a\", \"d\");\n+        HashMap.put(\"a\", \"b\");\n+        assertTrue(HashMap.size() == 1);\n+        HashMap.remove(\"\");\n+        assert(HashMap.remove(\"hello\") == null);","path":"Homework1/src/test/java/MyHashMapTest.java","position":79,"original_position":79,"commit_id":"764fa3296172bff1c4a18adb578e80d6a2c5932c","original_commit_id":"764fa3296172bff1c4a18adb578e80d6a2c5932c","user":{"login":"sproshev","id":4990763,"avatar_url":"https://avatars.githubusercontent.com/u/4990763?v=3","gravatar_id":"","url":"https://api.github.com/users/sproshev","html_url":"https://github.com/sproshev","followers_url":"https://api.github.com/users/sproshev/followers","following_url":"https://api.github.com/users/sproshev/following{/other_user}","gists_url":"https://api.github.com/users/sproshev/gists{/gist_id}","starred_url":"https://api.github.com/users/sproshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproshev/subscriptions","organizations_url":"https://api.github.com/users/sproshev/orgs","repos_url":"https://api.github.com/users/sproshev/repos","events_url":"https://api.github.com/users/sproshev/events{/privacy}","received_events_url":"https://api.github.com/users/sproshev/received_events","type":"User","site_admin":false},"body":"assertNull","created_at":"2016-09-25T21:24:36Z","updated_at":"2016-09-25T21:25:49Z","html_url":"https://github.com/Hamelinny/Java/pull/1#discussion_r80392381","pull_request_url":"https://api.github.com/repos/Hamelinny/Java/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/comments/80392381"},"html":{"href":"https://github.com/Hamelinny/Java/pull/1#discussion_r80392381"},"pull_request":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Hamelinny/Java/pulls/1","id":85822859,"html_url":"https://github.com/Hamelinny/Java/pull/1","diff_url":"https://github.com/Hamelinny/Java/pull/1.diff","patch_url":"https://github.com/Hamelinny/Java/pull/1.patch","issue_url":"https://api.github.com/repos/Hamelinny/Java/issues/1","number":1,"state":"closed","locked":false,"title":"Java02. ДЗ 01, Софронова Анастасия","user":{"login":"Hamelinny","id":19157871,"avatar_url":"https://avatars.githubusercontent.com/u/19157871?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamelinny","html_url":"https://github.com/Hamelinny","followers_url":"https://api.github.com/users/Hamelinny/followers","following_url":"https://api.github.com/users/Hamelinny/following{/other_user}","gists_url":"https://api.github.com/users/Hamelinny/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamelinny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamelinny/subscriptions","organizations_url":"https://api.github.com/users/Hamelinny/orgs","repos_url":"https://api.github.com/users/Hamelinny/repos","events_url":"https://api.github.com/users/Hamelinny/events{/privacy}","received_events_url":"https://api.github.com/users/Hamelinny/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-19T16:09:46Z","updated_at":"2016-09-25T21:25:49Z","closed_at":"2016-09-19T16:10:26Z","merged_at":"2016-09-19T16:10:26Z","merge_commit_sha":"cbc3ab80f764bde2f65ff9a41e4c72629f02a387","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Hamelinny/Java/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Hamelinny/Java/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Hamelinny/Java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hamelinny/Java/issues/1/comments","statuses_url":"https://api.github.com/repos/Hamelinny/Java/statuses/764fa3296172bff1c4a18adb578e80d6a2c5932c","head":{"label":"Hamelinny:hw01","ref":"hw01","sha":"764fa3296172bff1c4a18adb578e80d6a2c5932c","user":{"login":"Hamelinny","id":19157871,"avatar_url":"https://avatars.githubusercontent.com/u/19157871?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamelinny","html_url":"https://github.com/Hamelinny","followers_url":"https://api.github.com/users/Hamelinny/followers","following_url":"https://api.github.com/users/Hamelinny/following{/other_user}","gists_url":"https://api.github.com/users/Hamelinny/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamelinny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamelinny/subscriptions","organizations_url":"https://api.github.com/users/Hamelinny/orgs","repos_url":"https://api.github.com/users/Hamelinny/repos","events_url":"https://api.github.com/users/Hamelinny/events{/privacy}","received_events_url":"https://api.github.com/users/Hamelinny/received_events","type":"User","site_admin":false},"repo":{"id":68621079,"name":"Java","full_name":"Hamelinny/Java","owner":{"login":"Hamelinny","id":19157871,"avatar_url":"https://avatars.githubusercontent.com/u/19157871?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamelinny","html_url":"https://github.com/Hamelinny","followers_url":"https://api.github.com/users/Hamelinny/followers","following_url":"https://api.github.com/users/Hamelinny/following{/other_user}","gists_url":"https://api.github.com/users/Hamelinny/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamelinny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamelinny/subscriptions","organizations_url":"https://api.github.com/users/Hamelinny/orgs","repos_url":"https://api.github.com/users/Hamelinny/repos","events_url":"https://api.github.com/users/Hamelinny/events{/privacy}","received_events_url":"https://api.github.com/users/Hamelinny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hamelinny/Java","description":"Java homework","fork":false,"url":"https://api.github.com/repos/Hamelinny/Java","forks_url":"https://api.github.com/repos/Hamelinny/Java/forks","keys_url":"https://api.github.com/repos/Hamelinny/Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hamelinny/Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hamelinny/Java/teams","hooks_url":"https://api.github.com/repos/Hamelinny/Java/hooks","issue_events_url":"https://api.github.com/repos/Hamelinny/Java/issues/events{/number}","events_url":"https://api.github.com/repos/Hamelinny/Java/events","assignees_url":"https://api.github.com/repos/Hamelinny/Java/assignees{/user}","branches_url":"https://api.github.com/repos/Hamelinny/Java/branches{/branch}","tags_url":"https://api.github.com/repos/Hamelinny/Java/tags","blobs_url":"https://api.github.com/repos/Hamelinny/Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hamelinny/Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hamelinny/Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hamelinny/Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hamelinny/Java/statuses/{sha}","languages_url":"https://api.github.com/repos/Hamelinny/Java/languages","stargazers_url":"https://api.github.com/repos/Hamelinny/Java/stargazers","contributors_url":"https://api.github.com/repos/Hamelinny/Java/contributors","subscribers_url":"https://api.github.com/repos/Hamelinny/Java/subscribers","subscription_url":"https://api.github.com/repos/Hamelinny/Java/subscription","commits_url":"https://api.github.com/repos/Hamelinny/Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hamelinny/Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hamelinny/Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hamelinny/Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hamelinny/Java/contents/{+path}","compare_url":"https://api.github.com/repos/Hamelinny/Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hamelinny/Java/merges","archive_url":"https://api.github.com/repos/Hamelinny/Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hamelinny/Java/downloads","issues_url":"https://api.github.com/repos/Hamelinny/Java/issues{/number}","pulls_url":"https://api.github.com/repos/Hamelinny/Java/pulls{/number}","milestones_url":"https://api.github.com/repos/Hamelinny/Java/milestones{/number}","notifications_url":"https://api.github.com/repos/Hamelinny/Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hamelinny/Java/labels{/name}","releases_url":"https://api.github.com/repos/Hamelinny/Java/releases{/id}","deployments_url":"https://api.github.com/repos/Hamelinny/Java/deployments","created_at":"2016-09-19T15:51:55Z","updated_at":"2016-09-19T16:10:27Z","pushed_at":"2016-09-19T16:10:26Z","git_url":"git://github.com/Hamelinny/Java.git","ssh_url":"git@github.com:Hamelinny/Java.git","clone_url":"https://github.com/Hamelinny/Java.git","svn_url":"https://github.com/Hamelinny/Java","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":"Hamelinny:master","ref":"master","sha":"18c19dccb6f13e8d0ee9a457d5c73ade3b24de2d","user":{"login":"Hamelinny","id":19157871,"avatar_url":"https://avatars.githubusercontent.com/u/19157871?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamelinny","html_url":"https://github.com/Hamelinny","followers_url":"https://api.github.com/users/Hamelinny/followers","following_url":"https://api.github.com/users/Hamelinny/following{/other_user}","gists_url":"https://api.github.com/users/Hamelinny/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamelinny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamelinny/subscriptions","organizations_url":"https://api.github.com/users/Hamelinny/orgs","repos_url":"https://api.github.com/users/Hamelinny/repos","events_url":"https://api.github.com/users/Hamelinny/events{/privacy}","received_events_url":"https://api.github.com/users/Hamelinny/received_events","type":"User","site_admin":false},"repo":{"id":68621079,"name":"Java","full_name":"Hamelinny/Java","owner":{"login":"Hamelinny","id":19157871,"avatar_url":"https://avatars.githubusercontent.com/u/19157871?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamelinny","html_url":"https://github.com/Hamelinny","followers_url":"https://api.github.com/users/Hamelinny/followers","following_url":"https://api.github.com/users/Hamelinny/following{/other_user}","gists_url":"https://api.github.com/users/Hamelinny/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamelinny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamelinny/subscriptions","organizations_url":"https://api.github.com/users/Hamelinny/orgs","repos_url":"https://api.github.com/users/Hamelinny/repos","events_url":"https://api.github.com/users/Hamelinny/events{/privacy}","received_events_url":"https://api.github.com/users/Hamelinny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hamelinny/Java","description":"Java homework","fork":false,"url":"https://api.github.com/repos/Hamelinny/Java","forks_url":"https://api.github.com/repos/Hamelinny/Java/forks","keys_url":"https://api.github.com/repos/Hamelinny/Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hamelinny/Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hamelinny/Java/teams","hooks_url":"https://api.github.com/repos/Hamelinny/Java/hooks","issue_events_url":"https://api.github.com/repos/Hamelinny/Java/issues/events{/number}","events_url":"https://api.github.com/repos/Hamelinny/Java/events","assignees_url":"https://api.github.com/repos/Hamelinny/Java/assignees{/user}","branches_url":"https://api.github.com/repos/Hamelinny/Java/branches{/branch}","tags_url":"https://api.github.com/repos/Hamelinny/Java/tags","blobs_url":"https://api.github.com/repos/Hamelinny/Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hamelinny/Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hamelinny/Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hamelinny/Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hamelinny/Java/statuses/{sha}","languages_url":"https://api.github.com/repos/Hamelinny/Java/languages","stargazers_url":"https://api.github.com/repos/Hamelinny/Java/stargazers","contributors_url":"https://api.github.com/repos/Hamelinny/Java/contributors","subscribers_url":"https://api.github.com/repos/Hamelinny/Java/subscribers","subscription_url":"https://api.github.com/repos/Hamelinny/Java/subscription","commits_url":"https://api.github.com/repos/Hamelinny/Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hamelinny/Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hamelinny/Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hamelinny/Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hamelinny/Java/contents/{+path}","compare_url":"https://api.github.com/repos/Hamelinny/Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hamelinny/Java/merges","archive_url":"https://api.github.com/repos/Hamelinny/Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hamelinny/Java/downloads","issues_url":"https://api.github.com/repos/Hamelinny/Java/issues{/number}","pulls_url":"https://api.github.com/repos/Hamelinny/Java/pulls{/number}","milestones_url":"https://api.github.com/repos/Hamelinny/Java/milestones{/number}","notifications_url":"https://api.github.com/repos/Hamelinny/Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hamelinny/Java/labels{/name}","releases_url":"https://api.github.com/repos/Hamelinny/Java/releases{/id}","deployments_url":"https://api.github.com/repos/Hamelinny/Java/deployments","created_at":"2016-09-19T15:51:55Z","updated_at":"2016-09-19T16:10:27Z","pushed_at":"2016-09-19T16:10:26Z","git_url":"git://github.com/Hamelinny/Java.git","ssh_url":"git@github.com:Hamelinny/Java.git","clone_url":"https://github.com/Hamelinny/Java.git","svn_url":"https://github.com/Hamelinny/Java","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/1"},"html":{"href":"https://github.com/Hamelinny/Java/pull/1"},"issue":{"href":"https://api.github.com/repos/Hamelinny/Java/issues/1"},"comments":{"href":"https://api.github.com/repos/Hamelinny/Java/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hamelinny/Java/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Hamelinny/Java/statuses/764fa3296172bff1c4a18adb578e80d6a2c5932c"}}}}
{"actor":{"display_login":"sproshev"}}