{"action":"created","comment":{"url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/comments/56678093","id":56678093,"diff_hunk":"@@ -0,0 +1,81 @@\n+#include <stdlib.h>\n+#include <check.h>\n+#include \"serveur.h\"\n+#include \"test_dummies.h\"\n+\n+START_TEST(command_player_voir_test)\n+{\n+\tt_zappy\t\tvar;\n+\tt_player\t*p = &var.players[6];\n+\tt_action\t*action;\n+\n+\tdummy_t_zappy_without_board(&var);\n+\tvar.board_size[0] = 10;\n+\tvar.board_size[1] = 10;\n+\tdummy_t_zappy_add_board(&var);\n+\tdummy_t_player(&var, p);\n+\tcommand_voir(&var, p, NULL);\n+\taction = get_first_action(&p->actions);\n+\tck_assert_ptr_eq(action->run, &action_player_voir);\n+\tclean_msg_queue(p);\n+\t//action_player_clear(p, &var);\n+\trm_board(&var.board, var.board_size, var.board_size[0], var.board_size[1]);\n+\trm_teams(&var.teams, &var.nb_team);\n+}\n+END_TEST\n+\n+START_TEST(command_player_inventaire_test)\n+{\n+\tt_zappy\t\tvar;\n+\tt_player\t*p = &var.players[6];\n+\tt_action\t*action;\n+\n+\tdummy_t_zappy_without_board(&var);\n+\tvar.board_size[0] = 10;\n+\tvar.board_size[1] = 10;\n+\tdummy_t_zappy_add_board(&var);\n+\tdummy_t_player(&var, p);\n+\tcommand_inventaire(&var, p, NULL);\n+\taction = get_first_action(&p->actions);\n+\tck_assert_ptr_eq(action->run, &action_player_inventaire);\n+\tclean_msg_queue(p);\n+\taction_player_clear(p, &var);\n+\trm_board(&var.board, var.board_size, var.board_size[0], var.board_size[1]);\n+\trm_teams(&var.teams, &var.nb_team);\n+}\n+END_TEST\n+\n+//START_TEST(command_player_prend_test)\n+//{\n+//\tt_zappy\t\tvar;\n+//\tt_player\t*gfx = &var.players[5];\n+//\tt_player\t*p = &var.players[6];\n+//\tt_action\t*action;\n+//\n+//\tdummy_t_zappy_without_board(&var);\n+//\tvar.board_size[0] = 10;\n+//\tvar.board_size[1] = 10;\n+//\tdummy_t_zappy_add_board(&var);\n+//\tdummy_t_player_gfx(&var, gfx);\n+//\tdummy_t_player(&var, p);\n+//\tcommand_prend(&var, p, );\n+//\taction = get_first_action(&p->actions);\n+//\tck_assert_ptr_eq(action->run, &action_player_prend);\n+//\tclean_msg_queue(gfx);\n+//\tclean_msg_queue(p);\n+//\taction_player_clear(p, &var);\n+//\trm_board(&var.board, var.board_size, var.board_size[0], var.board_size[1]);\n+//\trm_teams(&var.teams, &var.nb_team);\n+//}\n+//END_TEST\n+\n+TCase*\tcommands_player_ressources_test(void)\n+{\n+\tTCase\t*tc;\n+\n+\ttc = tcase_create(\"player_voir\");\n+\ttcase_add_test(tc, command_player_voir_test);\n+\ttcase_add_test(tc, command_player_inventaire_test);\n+//\ttcase_add_test(tc, command_player_prend_test);","path":"test/src/commands/commands_player_voir.c.orig","position":79,"original_position":79,"commit_id":"411604f5ddb82121174990da6512b36e181e982d","original_commit_id":"411604f5ddb82121174990da6512b36e181e982d","user":{"login":"Geam","id":5331937,"avatar_url":"https://avatars.githubusercontent.com/u/5331937?v=3","gravatar_id":"","url":"https://api.github.com/users/Geam","html_url":"https://github.com/Geam","followers_url":"https://api.github.com/users/Geam/followers","following_url":"https://api.github.com/users/Geam/following{/other_user}","gists_url":"https://api.github.com/users/Geam/gists{/gist_id}","starred_url":"https://api.github.com/users/Geam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geam/subscriptions","organizations_url":"https://api.github.com/users/Geam/orgs","repos_url":"https://api.github.com/users/Geam/repos","events_url":"https://api.github.com/users/Geam/events{/privacy}","received_events_url":"https://api.github.com/users/Geam/received_events","type":"User","site_admin":false},"body":"Fixed in quick_fix","created_at":"2016-03-18T15:55:34Z","updated_at":"2016-03-18T15:55:34Z","html_url":"https://github.com/DwarfOfTheRap/zappy_server/pull/18#discussion_r56678093","pull_request_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/comments/56678093"},"html":{"href":"https://github.com/DwarfOfTheRap/zappy_server/pull/18#discussion_r56678093"},"pull_request":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18","id":63382128,"html_url":"https://github.com/DwarfOfTheRap/zappy_server/pull/18","diff_url":"https://github.com/DwarfOfTheRap/zappy_server/pull/18.diff","patch_url":"https://github.com/DwarfOfTheRap/zappy_server/pull/18.patch","issue_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/18","number":18,"state":"open","locked":false,"title":"First stable release","user":{"login":"jability","id":1519461,"avatar_url":"https://avatars.githubusercontent.com/u/1519461?v=3","gravatar_id":"","url":"https://api.github.com/users/jability","html_url":"https://github.com/jability","followers_url":"https://api.github.com/users/jability/followers","following_url":"https://api.github.com/users/jability/following{/other_user}","gists_url":"https://api.github.com/users/jability/gists{/gist_id}","starred_url":"https://api.github.com/users/jability/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jability/subscriptions","organizations_url":"https://api.github.com/users/jability/orgs","repos_url":"https://api.github.com/users/jability/repos","events_url":"https://api.github.com/users/jability/events{/privacy}","received_events_url":"https://api.github.com/users/jability/received_events","type":"User","site_admin":false},"body":"Release zappy_server v1.0","created_at":"2016-03-18T14:29:34Z","updated_at":"2016-03-18T15:55:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02e0ce60ace935293248db537477268ae3496d28","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18/commits","review_comments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18/comments","review_comment_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/18/comments","statuses_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/statuses/411604f5ddb82121174990da6512b36e181e982d","head":{"label":"DwarfOfTheRap:develop","ref":"develop","sha":"411604f5ddb82121174990da6512b36e181e982d","user":{"login":"DwarfOfTheRap","id":16255038,"avatar_url":"https://avatars.githubusercontent.com/u/16255038?v=3","gravatar_id":"","url":"https://api.github.com/users/DwarfOfTheRap","html_url":"https://github.com/DwarfOfTheRap","followers_url":"https://api.github.com/users/DwarfOfTheRap/followers","following_url":"https://api.github.com/users/DwarfOfTheRap/following{/other_user}","gists_url":"https://api.github.com/users/DwarfOfTheRap/gists{/gist_id}","starred_url":"https://api.github.com/users/DwarfOfTheRap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwarfOfTheRap/subscriptions","organizations_url":"https://api.github.com/users/DwarfOfTheRap/orgs","repos_url":"https://api.github.com/users/DwarfOfTheRap/repos","events_url":"https://api.github.com/users/DwarfOfTheRap/events{/privacy}","received_events_url":"https://api.github.com/users/DwarfOfTheRap/received_events","type":"Organization","site_admin":false},"repo":{"id":47882245,"name":"zappy_server","full_name":"DwarfOfTheRap/zappy_server","owner":{"login":"DwarfOfTheRap","id":16255038,"avatar_url":"https://avatars.githubusercontent.com/u/16255038?v=3","gravatar_id":"","url":"https://api.github.com/users/DwarfOfTheRap","html_url":"https://github.com/DwarfOfTheRap","followers_url":"https://api.github.com/users/DwarfOfTheRap/followers","following_url":"https://api.github.com/users/DwarfOfTheRap/following{/other_user}","gists_url":"https://api.github.com/users/DwarfOfTheRap/gists{/gist_id}","starred_url":"https://api.github.com/users/DwarfOfTheRap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwarfOfTheRap/subscriptions","organizations_url":"https://api.github.com/users/DwarfOfTheRap/orgs","repos_url":"https://api.github.com/users/DwarfOfTheRap/repos","events_url":"https://api.github.com/users/DwarfOfTheRap/events{/privacy}","received_events_url":"https://api.github.com/users/DwarfOfTheRap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DwarfOfTheRap/zappy_server","description":"42 school project zappy - server","fork":false,"url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server","forks_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/forks","keys_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/teams","hooks_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/hooks","issue_events_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/events{/number}","events_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/events","assignees_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/assignees{/user}","branches_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/branches{/branch}","tags_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/tags","blobs_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/statuses/{sha}","languages_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/languages","stargazers_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/stargazers","contributors_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/contributors","subscribers_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/subscribers","subscription_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/subscription","commits_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/contents/{+path}","compare_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/merges","archive_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/downloads","issues_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues{/number}","pulls_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls{/number}","milestones_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/milestones{/number}","notifications_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/labels{/name}","releases_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/releases{/id}","deployments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/deployments","created_at":"2015-12-12T14:57:54Z","updated_at":"2015-12-12T14:57:54Z","pushed_at":"2016-03-18T15:54:01Z","git_url":"git://github.com/DwarfOfTheRap/zappy_server.git","ssh_url":"git@github.com:DwarfOfTheRap/zappy_server.git","clone_url":"https://github.com/DwarfOfTheRap/zappy_server.git","svn_url":"https://github.com/DwarfOfTheRap/zappy_server","homepage":null,"size":430,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"DwarfOfTheRap:master","ref":"master","sha":"3484ecddb40cfaf7790c82c520c641dfa4778729","user":{"login":"DwarfOfTheRap","id":16255038,"avatar_url":"https://avatars.githubusercontent.com/u/16255038?v=3","gravatar_id":"","url":"https://api.github.com/users/DwarfOfTheRap","html_url":"https://github.com/DwarfOfTheRap","followers_url":"https://api.github.com/users/DwarfOfTheRap/followers","following_url":"https://api.github.com/users/DwarfOfTheRap/following{/other_user}","gists_url":"https://api.github.com/users/DwarfOfTheRap/gists{/gist_id}","starred_url":"https://api.github.com/users/DwarfOfTheRap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwarfOfTheRap/subscriptions","organizations_url":"https://api.github.com/users/DwarfOfTheRap/orgs","repos_url":"https://api.github.com/users/DwarfOfTheRap/repos","events_url":"https://api.github.com/users/DwarfOfTheRap/events{/privacy}","received_events_url":"https://api.github.com/users/DwarfOfTheRap/received_events","type":"Organization","site_admin":false},"repo":{"id":47882245,"name":"zappy_server","full_name":"DwarfOfTheRap/zappy_server","owner":{"login":"DwarfOfTheRap","id":16255038,"avatar_url":"https://avatars.githubusercontent.com/u/16255038?v=3","gravatar_id":"","url":"https://api.github.com/users/DwarfOfTheRap","html_url":"https://github.com/DwarfOfTheRap","followers_url":"https://api.github.com/users/DwarfOfTheRap/followers","following_url":"https://api.github.com/users/DwarfOfTheRap/following{/other_user}","gists_url":"https://api.github.com/users/DwarfOfTheRap/gists{/gist_id}","starred_url":"https://api.github.com/users/DwarfOfTheRap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwarfOfTheRap/subscriptions","organizations_url":"https://api.github.com/users/DwarfOfTheRap/orgs","repos_url":"https://api.github.com/users/DwarfOfTheRap/repos","events_url":"https://api.github.com/users/DwarfOfTheRap/events{/privacy}","received_events_url":"https://api.github.com/users/DwarfOfTheRap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DwarfOfTheRap/zappy_server","description":"42 school project zappy - server","fork":false,"url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server","forks_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/forks","keys_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/teams","hooks_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/hooks","issue_events_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/events{/number}","events_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/events","assignees_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/assignees{/user}","branches_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/branches{/branch}","tags_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/tags","blobs_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/statuses/{sha}","languages_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/languages","stargazers_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/stargazers","contributors_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/contributors","subscribers_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/subscribers","subscription_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/subscription","commits_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/contents/{+path}","compare_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/merges","archive_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/downloads","issues_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues{/number}","pulls_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls{/number}","milestones_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/milestones{/number}","notifications_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/labels{/name}","releases_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/releases{/id}","deployments_url":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/deployments","created_at":"2015-12-12T14:57:54Z","updated_at":"2015-12-12T14:57:54Z","pushed_at":"2016-03-18T15:54:01Z","git_url":"git://github.com/DwarfOfTheRap/zappy_server.git","ssh_url":"git@github.com:DwarfOfTheRap/zappy_server.git","clone_url":"https://github.com/DwarfOfTheRap/zappy_server.git","svn_url":"https://github.com/DwarfOfTheRap/zappy_server","homepage":null,"size":430,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18"},"html":{"href":"https://github.com/DwarfOfTheRap/zappy_server/pull/18"},"issue":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/18"},"comments":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/DwarfOfTheRap/zappy_server/statuses/411604f5ddb82121174990da6512b36e181e982d"}}}}