{"action":"created","comment":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/30166053","id":30166053,"diff_hunk":"@@ -0,0 +1,210 @@\n+/*\n+ Copyright (c) 2015, Ricardo Sánchez-Sáez.\n+ \n+ Redistribution and use in source and binary forms, with or without modification,\n+ are permitted provided that the following conditions are met:\n+ \n+ 1.  Redistributions of source code must retain the above copyright notice, this\n+ list of conditions and the following disclaimer.\n+ \n+ 2.  Redistributions in binary form must reproduce the above copyright notice,\n+ this list of conditions and the following disclaimer in the documentation and/or\n+ other materials provided with the distribution.\n+ \n+ 3.  Neither the name of the copyright holder(s) nor the names of any contributors\n+ may be used to endorse or promote products derived from this software without\n+ specific prior written permission. No license is granted to the trademarks of\n+ the copyright holders even if such marks are included in this software.\n+ \n+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+\n+#import <XCTest/XCTest.h>\n+#import <ResearchKit/ResearchKit.h>\n+#import \"ORKHelpers.h\"\n+#import \"ORKResult_Private.h\"\n+\n+\n+@interface ORKTaskTests : XCTestCase\n+\n+@end\n+\n+\n+@implementation ORKTaskTests {\n+    NSArray *_orderedTaskStepIdentifiers;\n+    NSArray *_orderedTaskSteps;\n+    ORKOrderedTask *_orderedTask;\n+}\n+\n+ORKDefineStringKey(ORKTHeadacheChoiceValue);","path":"ResearchKitTests/ORKTaskTests.m","position":49,"original_position":49,"commit_id":"b68ad7b9068bd2a583b1d4ac568662afd6ad0a64","original_commit_id":"b68ad7b9068bd2a583b1d4ac568662afd6ad0a64","user":{"login":"jwe-apple","id":11575859,"avatar_url":"https://avatars.githubusercontent.com/u/11575859?v=3","gravatar_id":"","url":"https://api.github.com/users/jwe-apple","html_url":"https://github.com/jwe-apple","followers_url":"https://api.github.com/users/jwe-apple/followers","following_url":"https://api.github.com/users/jwe-apple/following{/other_user}","gists_url":"https://api.github.com/users/jwe-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/jwe-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwe-apple/subscriptions","organizations_url":"https://api.github.com/users/jwe-apple/orgs","repos_url":"https://api.github.com/users/jwe-apple/repos","events_url":"https://api.github.com/users/jwe-apple/events{/privacy}","received_events_url":"https://api.github.com/users/jwe-apple/received_events","type":"User","site_admin":false},"body":"These should juts be static (I hope!), so they don't need an \"ORKT\" prefix.","created_at":"2015-05-12T18:37:38Z","updated_at":"2015-05-12T18:37:38Z","html_url":"https://github.com/ResearchKit/ResearchKit/pull/179#discussion_r30166053","pull_request_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/30166053"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/179#discussion_r30166053"},"pull_request":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179","id":35210766,"html_url":"https://github.com/ResearchKit/ResearchKit/pull/179","diff_url":"https://github.com/ResearchKit/ResearchKit/pull/179.diff","patch_url":"https://github.com/ResearchKit/ResearchKit/pull/179.patch","issue_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/179","number":179,"state":"open","locked":false,"title":"Complete task and form step unique identifier validation","user":{"login":"rsanchezsaez","id":444313,"avatar_url":"https://avatars.githubusercontent.com/u/444313?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanchezsaez","html_url":"https://github.com/rsanchezsaez","followers_url":"https://api.github.com/users/rsanchezsaez/followers","following_url":"https://api.github.com/users/rsanchezsaez/following{/other_user}","gists_url":"https://api.github.com/users/rsanchezsaez/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchezsaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchezsaez/subscriptions","organizations_url":"https://api.github.com/users/rsanchezsaez/orgs","repos_url":"https://api.github.com/users/rsanchezsaez/repos","events_url":"https://api.github.com/users/rsanchezsaez/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchezsaez/received_events","type":"User","site_admin":false},"body":"Takes over [PR #97](https://github.com/ResearchKit/ResearchKit/pull/97) completing [Issue #85](https://github.com/ResearchKit/ResearchKit/issues/85).\r\n\r\nI tried to make the new `ORKTaskTests` unit test file as coherent to the one on `rsanchezsaez-navigationrules` as possible to avoid future merge conflicts.","created_at":"2015-05-12T10:03:56Z","updated_at":"2015-05-12T18:37:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01e444fbdc0b4de61d1d927001b3e9cdcccf3556","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179/commits","review_comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179/comments","review_comment_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/179/comments","statuses_url":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/b68ad7b9068bd2a583b1d4ac568662afd6ad0a64","head":{"label":"rsanchezsaez:garnett-identifiervalidation","ref":"garnett-identifiervalidation","sha":"b68ad7b9068bd2a583b1d4ac568662afd6ad0a64","user":{"login":"rsanchezsaez","id":444313,"avatar_url":"https://avatars.githubusercontent.com/u/444313?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanchezsaez","html_url":"https://github.com/rsanchezsaez","followers_url":"https://api.github.com/users/rsanchezsaez/followers","following_url":"https://api.github.com/users/rsanchezsaez/following{/other_user}","gists_url":"https://api.github.com/users/rsanchezsaez/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchezsaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchezsaez/subscriptions","organizations_url":"https://api.github.com/users/rsanchezsaez/orgs","repos_url":"https://api.github.com/users/rsanchezsaez/repos","events_url":"https://api.github.com/users/rsanchezsaez/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchezsaez/received_events","type":"User","site_admin":false},"repo":{"id":33944592,"name":"ResearchKit","full_name":"rsanchezsaez/ResearchKit","owner":{"login":"rsanchezsaez","id":444313,"avatar_url":"https://avatars.githubusercontent.com/u/444313?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanchezsaez","html_url":"https://github.com/rsanchezsaez","followers_url":"https://api.github.com/users/rsanchezsaez/followers","following_url":"https://api.github.com/users/rsanchezsaez/following{/other_user}","gists_url":"https://api.github.com/users/rsanchezsaez/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchezsaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchezsaez/subscriptions","organizations_url":"https://api.github.com/users/rsanchezsaez/orgs","repos_url":"https://api.github.com/users/rsanchezsaez/repos","events_url":"https://api.github.com/users/rsanchezsaez/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchezsaez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsanchezsaez/ResearchKit","description":"ResearchKit is an open source software framework that makes it easy to create apps for medical research or for other research projects.","fork":true,"url":"https://api.github.com/repos/rsanchezsaez/ResearchKit","forks_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/forks","keys_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/teams","hooks_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/hooks","issue_events_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/issues/events{/number}","events_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/events","assignees_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/assignees{/user}","branches_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/branches{/branch}","tags_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/tags","blobs_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/statuses/{sha}","languages_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/languages","stargazers_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/stargazers","contributors_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/contributors","subscribers_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/subscribers","subscription_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/subscription","commits_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/contents/{+path}","compare_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/merges","archive_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/downloads","issues_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/issues{/number}","pulls_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/pulls{/number}","milestones_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/milestones{/number}","notifications_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/labels{/name}","releases_url":"https://api.github.com/repos/rsanchezsaez/ResearchKit/releases{/id}","created_at":"2015-04-14T16:50:40Z","updated_at":"2015-05-12T09:19:47Z","pushed_at":"2015-05-12T10:02:39Z","git_url":"git://github.com/rsanchezsaez/ResearchKit.git","ssh_url":"git@github.com:rsanchezsaez/ResearchKit.git","clone_url":"https://github.com/rsanchezsaez/ResearchKit.git","svn_url":"https://github.com/rsanchezsaez/ResearchKit","homepage":"","size":12521,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ResearchKit:master","ref":"master","sha":"f56f6312e6a13aee9df2abceb821f0603f62f487","user":{"login":"ResearchKit","id":11183179,"avatar_url":"https://avatars.githubusercontent.com/u/11183179?v=3","gravatar_id":"","url":"https://api.github.com/users/ResearchKit","html_url":"https://github.com/ResearchKit","followers_url":"https://api.github.com/users/ResearchKit/followers","following_url":"https://api.github.com/users/ResearchKit/following{/other_user}","gists_url":"https://api.github.com/users/ResearchKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ResearchKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ResearchKit/subscriptions","organizations_url":"https://api.github.com/users/ResearchKit/orgs","repos_url":"https://api.github.com/users/ResearchKit/repos","events_url":"https://api.github.com/users/ResearchKit/events{/privacy}","received_events_url":"https://api.github.com/users/ResearchKit/received_events","type":"Organization","site_admin":false},"repo":{"id":31979038,"name":"ResearchKit","full_name":"ResearchKit/ResearchKit","owner":{"login":"ResearchKit","id":11183179,"avatar_url":"https://avatars.githubusercontent.com/u/11183179?v=3","gravatar_id":"","url":"https://api.github.com/users/ResearchKit","html_url":"https://github.com/ResearchKit","followers_url":"https://api.github.com/users/ResearchKit/followers","following_url":"https://api.github.com/users/ResearchKit/following{/other_user}","gists_url":"https://api.github.com/users/ResearchKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ResearchKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ResearchKit/subscriptions","organizations_url":"https://api.github.com/users/ResearchKit/orgs","repos_url":"https://api.github.com/users/ResearchKit/repos","events_url":"https://api.github.com/users/ResearchKit/events{/privacy}","received_events_url":"https://api.github.com/users/ResearchKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ResearchKit/ResearchKit","description":"ResearchKit is an open source software framework that makes it easy to create apps for medical research or for other research projects.","fork":false,"url":"https://api.github.com/repos/ResearchKit/ResearchKit","forks_url":"https://api.github.com/repos/ResearchKit/ResearchKit/forks","keys_url":"https://api.github.com/repos/ResearchKit/ResearchKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ResearchKit/ResearchKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ResearchKit/ResearchKit/teams","hooks_url":"https://api.github.com/repos/ResearchKit/ResearchKit/hooks","issue_events_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/events{/number}","events_url":"https://api.github.com/repos/ResearchKit/ResearchKit/events","assignees_url":"https://api.github.com/repos/ResearchKit/ResearchKit/assignees{/user}","branches_url":"https://api.github.com/repos/ResearchKit/ResearchKit/branches{/branch}","tags_url":"https://api.github.com/repos/ResearchKit/ResearchKit/tags","blobs_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/{sha}","languages_url":"https://api.github.com/repos/ResearchKit/ResearchKit/languages","stargazers_url":"https://api.github.com/repos/ResearchKit/ResearchKit/stargazers","contributors_url":"https://api.github.com/repos/ResearchKit/ResearchKit/contributors","subscribers_url":"https://api.github.com/repos/ResearchKit/ResearchKit/subscribers","subscription_url":"https://api.github.com/repos/ResearchKit/ResearchKit/subscription","commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ResearchKit/ResearchKit/contents/{+path}","compare_url":"https://api.github.com/repos/ResearchKit/ResearchKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ResearchKit/ResearchKit/merges","archive_url":"https://api.github.com/repos/ResearchKit/ResearchKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ResearchKit/ResearchKit/downloads","issues_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues{/number}","pulls_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls{/number}","milestones_url":"https://api.github.com/repos/ResearchKit/ResearchKit/milestones{/number}","notifications_url":"https://api.github.com/repos/ResearchKit/ResearchKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ResearchKit/ResearchKit/labels{/name}","releases_url":"https://api.github.com/repos/ResearchKit/ResearchKit/releases{/id}","created_at":"2015-03-10T20:05:32Z","updated_at":"2015-05-12T17:40:18Z","pushed_at":"2015-05-12T18:26:28Z","git_url":"git://github.com/ResearchKit/ResearchKit.git","ssh_url":"git@github.com:ResearchKit/ResearchKit.git","clone_url":"https://github.com/ResearchKit/ResearchKit.git","svn_url":"https://github.com/ResearchKit/ResearchKit","homepage":"","size":19491,"stargazers_count":3590,"watchers_count":3590,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":397,"mirror_url":null,"open_issues_count":36,"forks":397,"open_issues":36,"watchers":3590,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/179"},"issue":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/179"},"comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/b68ad7b9068bd2a583b1d4ac568662afd6ad0a64"}}}}