{"action":"created","comment":{"url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/comments/37205280","id":37205280,"diff_hunk":"@@ -0,0 +1,76 @@\n+import static org.junit.Assert.*;\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+\n+\n+public class MatrixTest {\n+\n+\t@BeforeClass\n+\tpublic static void setUpBeforeClass() throws Exception {\n+\t}\n+\n+\t@AfterClass\n+\tpublic static void tearDownAfterClass() throws Exception {\n+\t}\n+\n+\t@Before\n+\tpublic void setUp() throws Exception {\n+\t}\n+\n+\t@After\n+\tpublic void tearDown() throws Exception {\n+\t}\n+\n+\t@Test\n+\tpublic void matrixTransposeTest() {\n+\t\tint[] input []={{1,2},{3,4}};\n+\t\tint[] expected[]={{1,3},{2,4}};\n+\t\tboolean b= new MatrixTest().isArrayEqual(expected ,input);\n+\t\tassertTrue(b);\n+\t}\n+\tpublic\tboolean\tisArrayEqual(int []expected[] ,int []actual[])\n+\t{ \n+\t\tint flag=0;\n+\t\tfor(int count1=0;count1<2;count1++)\n+\t\t\tfor(int count2=0;count2<2;count2++)\n+\t\t\t{\n+\t\t\t\tif(expected[count1][count2]==actual[count1][count2])\n+\t\t\t\t\tflag=0;\n+\t\t\t\telse\n+\t\t\t\t\tflag=1;\n+\t        }\n+\t\tif(flag==0)\n+\t\t\treturn true;\n+\t\telse \n+\t\t\treturn false;\n+\t}\n+\t@Test\n+\tpublic void matrixTransposeTest2() {\n+\t\tint[] input []={{1,2,3},{4,5,6},{7,8,9}};\n+\t\tint[] expected[]={{1,4,7},{2,5,8},{3,6,9}};\n+\t\tboolean b= new MatrixTest().isArrayEqual1(expected ,input);\n+\t\tassertTrue(b);","path":"OOP/OOPS_Session_1/MatrixTest.java","position":56,"original_position":56,"commit_id":"893d3c1db85fae6f97e35c9fa446f85ca2fbaf7f","original_commit_id":"893d3c1db85fae6f97e35c9fa446f85ca2fbaf7f","user":{"login":"vikas1885","id":10379301,"avatar_url":"https://avatars.githubusercontent.com/u/10379301?v=3","gravatar_id":"","url":"https://api.github.com/users/vikas1885","html_url":"https://github.com/vikas1885","followers_url":"https://api.github.com/users/vikas1885/followers","following_url":"https://api.github.com/users/vikas1885/following{/other_user}","gists_url":"https://api.github.com/users/vikas1885/gists{/gist_id}","starred_url":"https://api.github.com/users/vikas1885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikas1885/subscriptions","organizations_url":"https://api.github.com/users/vikas1885/orgs","repos_url":"https://api.github.com/users/vikas1885/repos","events_url":"https://api.github.com/users/vikas1885/events{/privacy}","received_events_url":"https://api.github.com/users/vikas1885/received_events","type":"User","site_admin":false},"body":"ACTION: This method will not give proper error message, use overloaded method assertTrue(java.lang.String message, boolean condition) and give proper error message in case of assert failure.","created_at":"2015-08-17T16:16:20Z","updated_at":"2015-08-17T16:16:20Z","html_url":"https://github.com/Avinash-barola/get2015/pull/5#discussion_r37205280","pull_request_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/comments/37205280"},"html":{"href":"https://github.com/Avinash-barola/get2015/pull/5#discussion_r37205280"},"pull_request":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5","id":42573482,"html_url":"https://github.com/Avinash-barola/get2015/pull/5","diff_url":"https://github.com/Avinash-barola/get2015/pull/5.diff","patch_url":"https://github.com/Avinash-barola/get2015/pull/5.patch","issue_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/5","number":5,"state":"open","locked":false,"title":"Oop avinash session 1","user":{"login":"Avinash-barola","id":13676864,"avatar_url":"https://avatars.githubusercontent.com/u/13676864?v=3","gravatar_id":"","url":"https://api.github.com/users/Avinash-barola","html_url":"https://github.com/Avinash-barola","followers_url":"https://api.github.com/users/Avinash-barola/followers","following_url":"https://api.github.com/users/Avinash-barola/following{/other_user}","gists_url":"https://api.github.com/users/Avinash-barola/gists{/gist_id}","starred_url":"https://api.github.com/users/Avinash-barola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avinash-barola/subscriptions","organizations_url":"https://api.github.com/users/Avinash-barola/orgs","repos_url":"https://api.github.com/users/Avinash-barola/repos","events_url":"https://api.github.com/users/Avinash-barola/events{/privacy}","received_events_url":"https://api.github.com/users/Avinash-barola/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-17T10:24:36Z","updated_at":"2015-08-17T16:16:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2a4820833e4f1581e545442e8826912fdb17aa9","assignee":{"login":"vikas1885","id":10379301,"avatar_url":"https://avatars.githubusercontent.com/u/10379301?v=3","gravatar_id":"","url":"https://api.github.com/users/vikas1885","html_url":"https://github.com/vikas1885","followers_url":"https://api.github.com/users/vikas1885/followers","following_url":"https://api.github.com/users/vikas1885/following{/other_user}","gists_url":"https://api.github.com/users/vikas1885/gists{/gist_id}","starred_url":"https://api.github.com/users/vikas1885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikas1885/subscriptions","organizations_url":"https://api.github.com/users/vikas1885/orgs","repos_url":"https://api.github.com/users/vikas1885/repos","events_url":"https://api.github.com/users/vikas1885/events{/privacy}","received_events_url":"https://api.github.com/users/vikas1885/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/5/comments","statuses_url":"https://api.github.com/repos/Avinash-barola/get2015/statuses/893d3c1db85fae6f97e35c9fa446f85ca2fbaf7f","head":{"label":"Avinash-barola:OOP-avinash-session-1","ref":"OOP-avinash-session-1","sha":"893d3c1db85fae6f97e35c9fa446f85ca2fbaf7f","user":{"login":"Avinash-barola","id":13676864,"avatar_url":"https://avatars.githubusercontent.com/u/13676864?v=3","gravatar_id":"","url":"https://api.github.com/users/Avinash-barola","html_url":"https://github.com/Avinash-barola","followers_url":"https://api.github.com/users/Avinash-barola/followers","following_url":"https://api.github.com/users/Avinash-barola/following{/other_user}","gists_url":"https://api.github.com/users/Avinash-barola/gists{/gist_id}","starred_url":"https://api.github.com/users/Avinash-barola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avinash-barola/subscriptions","organizations_url":"https://api.github.com/users/Avinash-barola/orgs","repos_url":"https://api.github.com/users/Avinash-barola/repos","events_url":"https://api.github.com/users/Avinash-barola/events{/privacy}","received_events_url":"https://api.github.com/users/Avinash-barola/received_events","type":"User","site_admin":false},"repo":{"id":40349639,"name":"get2015","full_name":"Avinash-barola/get2015","owner":{"login":"Avinash-barola","id":13676864,"avatar_url":"https://avatars.githubusercontent.com/u/13676864?v=3","gravatar_id":"","url":"https://api.github.com/users/Avinash-barola","html_url":"https://github.com/Avinash-barola","followers_url":"https://api.github.com/users/Avinash-barola/followers","following_url":"https://api.github.com/users/Avinash-barola/following{/other_user}","gists_url":"https://api.github.com/users/Avinash-barola/gists{/gist_id}","starred_url":"https://api.github.com/users/Avinash-barola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avinash-barola/subscriptions","organizations_url":"https://api.github.com/users/Avinash-barola/orgs","repos_url":"https://api.github.com/users/Avinash-barola/repos","events_url":"https://api.github.com/users/Avinash-barola/events{/privacy}","received_events_url":"https://api.github.com/users/Avinash-barola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Avinash-barola/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/Avinash-barola/get2015","forks_url":"https://api.github.com/repos/Avinash-barola/get2015/forks","keys_url":"https://api.github.com/repos/Avinash-barola/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Avinash-barola/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Avinash-barola/get2015/teams","hooks_url":"https://api.github.com/repos/Avinash-barola/get2015/hooks","issue_events_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/Avinash-barola/get2015/events","assignees_url":"https://api.github.com/repos/Avinash-barola/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/Avinash-barola/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/Avinash-barola/get2015/tags","blobs_url":"https://api.github.com/repos/Avinash-barola/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Avinash-barola/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Avinash-barola/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/Avinash-barola/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Avinash-barola/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/Avinash-barola/get2015/languages","stargazers_url":"https://api.github.com/repos/Avinash-barola/get2015/stargazers","contributors_url":"https://api.github.com/repos/Avinash-barola/get2015/contributors","subscribers_url":"https://api.github.com/repos/Avinash-barola/get2015/subscribers","subscription_url":"https://api.github.com/repos/Avinash-barola/get2015/subscription","commits_url":"https://api.github.com/repos/Avinash-barola/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/Avinash-barola/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/Avinash-barola/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/Avinash-barola/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/Avinash-barola/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Avinash-barola/get2015/merges","archive_url":"https://api.github.com/repos/Avinash-barola/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Avinash-barola/get2015/downloads","issues_url":"https://api.github.com/repos/Avinash-barola/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/Avinash-barola/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/Avinash-barola/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Avinash-barola/get2015/labels{/name}","releases_url":"https://api.github.com/repos/Avinash-barola/get2015/releases{/id}","created_at":"2015-08-07T08:21:58Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-08-17T10:24:36Z","git_url":"git://github.com/Avinash-barola/get2015.git","ssh_url":"git@github.com:Avinash-barola/get2015.git","clone_url":"https://github.com/Avinash-barola/get2015.git","svn_url":"https://github.com/Avinash-barola/get2015","homepage":null,"size":255,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Avinash-barola:master","ref":"master","sha":"e52a6c4ff8198a2f43d5b4cfa46944c6f4686dfe","user":{"login":"Avinash-barola","id":13676864,"avatar_url":"https://avatars.githubusercontent.com/u/13676864?v=3","gravatar_id":"","url":"https://api.github.com/users/Avinash-barola","html_url":"https://github.com/Avinash-barola","followers_url":"https://api.github.com/users/Avinash-barola/followers","following_url":"https://api.github.com/users/Avinash-barola/following{/other_user}","gists_url":"https://api.github.com/users/Avinash-barola/gists{/gist_id}","starred_url":"https://api.github.com/users/Avinash-barola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avinash-barola/subscriptions","organizations_url":"https://api.github.com/users/Avinash-barola/orgs","repos_url":"https://api.github.com/users/Avinash-barola/repos","events_url":"https://api.github.com/users/Avinash-barola/events{/privacy}","received_events_url":"https://api.github.com/users/Avinash-barola/received_events","type":"User","site_admin":false},"repo":{"id":40349639,"name":"get2015","full_name":"Avinash-barola/get2015","owner":{"login":"Avinash-barola","id":13676864,"avatar_url":"https://avatars.githubusercontent.com/u/13676864?v=3","gravatar_id":"","url":"https://api.github.com/users/Avinash-barola","html_url":"https://github.com/Avinash-barola","followers_url":"https://api.github.com/users/Avinash-barola/followers","following_url":"https://api.github.com/users/Avinash-barola/following{/other_user}","gists_url":"https://api.github.com/users/Avinash-barola/gists{/gist_id}","starred_url":"https://api.github.com/users/Avinash-barola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avinash-barola/subscriptions","organizations_url":"https://api.github.com/users/Avinash-barola/orgs","repos_url":"https://api.github.com/users/Avinash-barola/repos","events_url":"https://api.github.com/users/Avinash-barola/events{/privacy}","received_events_url":"https://api.github.com/users/Avinash-barola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Avinash-barola/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/Avinash-barola/get2015","forks_url":"https://api.github.com/repos/Avinash-barola/get2015/forks","keys_url":"https://api.github.com/repos/Avinash-barola/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Avinash-barola/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Avinash-barola/get2015/teams","hooks_url":"https://api.github.com/repos/Avinash-barola/get2015/hooks","issue_events_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/Avinash-barola/get2015/events","assignees_url":"https://api.github.com/repos/Avinash-barola/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/Avinash-barola/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/Avinash-barola/get2015/tags","blobs_url":"https://api.github.com/repos/Avinash-barola/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Avinash-barola/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Avinash-barola/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/Avinash-barola/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Avinash-barola/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/Avinash-barola/get2015/languages","stargazers_url":"https://api.github.com/repos/Avinash-barola/get2015/stargazers","contributors_url":"https://api.github.com/repos/Avinash-barola/get2015/contributors","subscribers_url":"https://api.github.com/repos/Avinash-barola/get2015/subscribers","subscription_url":"https://api.github.com/repos/Avinash-barola/get2015/subscription","commits_url":"https://api.github.com/repos/Avinash-barola/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/Avinash-barola/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/Avinash-barola/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/Avinash-barola/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/Avinash-barola/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/Avinash-barola/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Avinash-barola/get2015/merges","archive_url":"https://api.github.com/repos/Avinash-barola/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Avinash-barola/get2015/downloads","issues_url":"https://api.github.com/repos/Avinash-barola/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/Avinash-barola/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/Avinash-barola/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/Avinash-barola/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Avinash-barola/get2015/labels{/name}","releases_url":"https://api.github.com/repos/Avinash-barola/get2015/releases{/id}","created_at":"2015-08-07T08:21:58Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-08-17T10:24:36Z","git_url":"git://github.com/Avinash-barola/get2015.git","ssh_url":"git@github.com:Avinash-barola/get2015.git","clone_url":"https://github.com/Avinash-barola/get2015.git","svn_url":"https://github.com/Avinash-barola/get2015","homepage":null,"size":255,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5"},"html":{"href":"https://github.com/Avinash-barola/get2015/pull/5"},"issue":{"href":"https://api.github.com/repos/Avinash-barola/get2015/issues/5"},"comments":{"href":"https://api.github.com/repos/Avinash-barola/get2015/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Avinash-barola/get2015/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Avinash-barola/get2015/statuses/893d3c1db85fae6f97e35c9fa446f85ca2fbaf7f"}}}}