{"action":"created","comment":{"url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/comments/88645400","pull_request_review_id":9213397,"id":88645400,"diff_hunk":"@@ -0,0 +1,112 @@\n+function assert_tables_equal(expected, actual)\n+    for key,value in pairs(expected) do\n+        assert.equal(expected[key], actual[key])\n+    end\n+end\n+\n+function assert_keysets_are_equal(sample, actual)\n+    for key in pairs(sample) do\n+        assert.not_nil(actual[key])\n+    end\n+    for key in pairs(actual) do\n+        assert.not_nil(sample[key])\n+    end\n+end\n+\n+\n+describe(\"tests orderPairs\", function()\n+    setup(function()\n+        require(\"ctf/tests/mock/minetest\")","path":"ctf/tests/core_spec.lua","position":19,"original_position":19,"commit_id":"1748e92d091e773ca1af25e3230324bc8b0c9ad0","original_commit_id":"1748e92d091e773ca1af25e3230324bc8b0c9ad0","user":{"login":"asl97","id":4752645,"avatar_url":"https://avatars.githubusercontent.com/u/4752645?v=3","gravatar_id":"","url":"https://api.github.com/users/asl97","html_url":"https://github.com/asl97","followers_url":"https://api.github.com/users/asl97/followers","following_url":"https://api.github.com/users/asl97/following{/other_user}","gists_url":"https://api.github.com/users/asl97/gists{/gist_id}","starred_url":"https://api.github.com/users/asl97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asl97/subscriptions","organizations_url":"https://api.github.com/users/asl97/orgs","repos_url":"https://api.github.com/users/asl97/repos","events_url":"https://api.github.com/users/asl97/events{/privacy}","received_events_url":"https://api.github.com/users/asl97/received_events","type":"User","site_admin":false},"body":"How do you find the path that the script is located at?\r\nIf you run busted in the root of the project,  the 'relative path' would start at the root instead of the mod.","created_at":"2016-11-18T12:01:25Z","updated_at":"2016-11-18T12:01:25Z","html_url":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16#discussion_r88645400","pull_request_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/comments/88645400"},"html":{"href":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16#discussion_r88645400"},"pull_request":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16","id":94109243,"html_url":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16","diff_url":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16.diff","patch_url":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16.patch","issue_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/16","number":16,"state":"open","locked":false,"title":"Add orderPairs tests","user":{"login":"asl97","id":4752645,"avatar_url":"https://avatars.githubusercontent.com/u/4752645?v=3","gravatar_id":"","url":"https://api.github.com/users/asl97","html_url":"https://github.com/asl97","followers_url":"https://api.github.com/users/asl97/followers","following_url":"https://api.github.com/users/asl97/following{/other_user}","gists_url":"https://api.github.com/users/asl97/gists{/gist_id}","starred_url":"https://api.github.com/users/asl97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asl97/subscriptions","organizations_url":"https://api.github.com/users/asl97/orgs","repos_url":"https://api.github.com/users/asl97/repos","events_url":"https://api.github.com/users/asl97/events{/privacy}","received_events_url":"https://api.github.com/users/asl97/received_events","type":"User","site_admin":false},"body":"Using [busted](http://olivinelabs.com/busted/)\r\nWIP with some broken test due to me having some design question about orderPairs should work.\r\n\r\nhow to run tests: call `busted .` at the root of the project, busted will search through the whole project for `_spec.lua` files and run them.","created_at":"2016-11-17T06:26:07Z","updated_at":"2016-11-18T12:01:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d709b90918f03ffc11ad0c4526d0384a80ae080","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16/commits","review_comments_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16/comments","review_comment_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/16/comments","statuses_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/statuses/1748e92d091e773ca1af25e3230324bc8b0c9ad0","head":{"label":"asl97:patch-1","ref":"patch-1","sha":"1748e92d091e773ca1af25e3230324bc8b0c9ad0","user":{"login":"asl97","id":4752645,"avatar_url":"https://avatars.githubusercontent.com/u/4752645?v=3","gravatar_id":"","url":"https://api.github.com/users/asl97","html_url":"https://github.com/asl97","followers_url":"https://api.github.com/users/asl97/followers","following_url":"https://api.github.com/users/asl97/following{/other_user}","gists_url":"https://api.github.com/users/asl97/gists{/gist_id}","starred_url":"https://api.github.com/users/asl97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asl97/subscriptions","organizations_url":"https://api.github.com/users/asl97/orgs","repos_url":"https://api.github.com/users/asl97/repos","events_url":"https://api.github.com/users/asl97/events{/privacy}","received_events_url":"https://api.github.com/users/asl97/received_events","type":"User","site_admin":false},"repo":{"id":73996766,"name":"ctf_pvp_engine","full_name":"asl97/ctf_pvp_engine","owner":{"login":"asl97","id":4752645,"avatar_url":"https://avatars.githubusercontent.com/u/4752645?v=3","gravatar_id":"","url":"https://api.github.com/users/asl97","html_url":"https://github.com/asl97","followers_url":"https://api.github.com/users/asl97/followers","following_url":"https://api.github.com/users/asl97/following{/other_user}","gists_url":"https://api.github.com/users/asl97/gists{/gist_id}","starred_url":"https://api.github.com/users/asl97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asl97/subscriptions","organizations_url":"https://api.github.com/users/asl97/orgs","repos_url":"https://api.github.com/users/asl97/repos","events_url":"https://api.github.com/users/asl97/events{/privacy}","received_events_url":"https://api.github.com/users/asl97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asl97/ctf_pvp_engine","description":"A highly modular framework for the Minetest game engine","fork":true,"url":"https://api.github.com/repos/asl97/ctf_pvp_engine","forks_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/forks","keys_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/teams","hooks_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/hooks","issue_events_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/issues/events{/number}","events_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/events","assignees_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/assignees{/user}","branches_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/branches{/branch}","tags_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/tags","blobs_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/languages","stargazers_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/stargazers","contributors_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/contributors","subscribers_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/subscribers","subscription_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/subscription","commits_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/contents/{+path}","compare_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/merges","archive_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/downloads","issues_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/issues{/number}","pulls_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/labels{/name}","releases_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/releases{/id}","deployments_url":"https://api.github.com/repos/asl97/ctf_pvp_engine/deployments","created_at":"2016-11-17T06:19:06Z","updated_at":"2016-11-17T06:19:07Z","pushed_at":"2016-11-17T06:35:27Z","git_url":"git://github.com/asl97/ctf_pvp_engine.git","ssh_url":"git@github.com:asl97/ctf_pvp_engine.git","clone_url":"https://github.com/asl97/ctf_pvp_engine.git","svn_url":"https://github.com/asl97/ctf_pvp_engine","homepage":"","size":2293,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"rubenwardy:master","ref":"master","sha":"80c47dd99beac3759ef9f9591088a758f0799d50","user":{"login":"rubenwardy","id":2122943,"avatar_url":"https://avatars.githubusercontent.com/u/2122943?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenwardy","html_url":"https://github.com/rubenwardy","followers_url":"https://api.github.com/users/rubenwardy/followers","following_url":"https://api.github.com/users/rubenwardy/following{/other_user}","gists_url":"https://api.github.com/users/rubenwardy/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenwardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenwardy/subscriptions","organizations_url":"https://api.github.com/users/rubenwardy/orgs","repos_url":"https://api.github.com/users/rubenwardy/repos","events_url":"https://api.github.com/users/rubenwardy/events{/privacy}","received_events_url":"https://api.github.com/users/rubenwardy/received_events","type":"User","site_admin":false},"repo":{"id":12162490,"name":"ctf_pvp_engine","full_name":"rubenwardy/ctf_pvp_engine","owner":{"login":"rubenwardy","id":2122943,"avatar_url":"https://avatars.githubusercontent.com/u/2122943?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenwardy","html_url":"https://github.com/rubenwardy","followers_url":"https://api.github.com/users/rubenwardy/followers","following_url":"https://api.github.com/users/rubenwardy/following{/other_user}","gists_url":"https://api.github.com/users/rubenwardy/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenwardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenwardy/subscriptions","organizations_url":"https://api.github.com/users/rubenwardy/orgs","repos_url":"https://api.github.com/users/rubenwardy/repos","events_url":"https://api.github.com/users/rubenwardy/events{/privacy}","received_events_url":"https://api.github.com/users/rubenwardy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rubenwardy/ctf_pvp_engine","description":"A highly modular framework for the Minetest game engine","fork":false,"url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine","forks_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/forks","keys_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/teams","hooks_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/hooks","issue_events_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/events{/number}","events_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/events","assignees_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/assignees{/user}","branches_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/branches{/branch}","tags_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/tags","blobs_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/languages","stargazers_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/stargazers","contributors_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/contributors","subscribers_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/subscribers","subscription_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/subscription","commits_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/contents/{+path}","compare_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/merges","archive_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/downloads","issues_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues{/number}","pulls_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/labels{/name}","releases_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/releases{/id}","deployments_url":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/deployments","created_at":"2013-08-16T16:04:50Z","updated_at":"2016-11-01T23:26:10Z","pushed_at":"2016-11-17T06:35:27Z","git_url":"git://github.com/rubenwardy/ctf_pvp_engine.git","ssh_url":"git@github.com:rubenwardy/ctf_pvp_engine.git","clone_url":"https://github.com/rubenwardy/ctf_pvp_engine.git","svn_url":"https://github.com/rubenwardy/ctf_pvp_engine","homepage":"","size":2298,"stargazers_count":4,"watchers_count":4,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16"},"html":{"href":"https://github.com/rubenwardy/ctf_pvp_engine/pull/16"},"issue":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/16"},"comments":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/rubenwardy/ctf_pvp_engine/statuses/1748e92d091e773ca1af25e3230324bc8b0c9ad0"}}}}
{"actor":{"display_login":"asl97"}}