{"action":"created","comment":{"url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/comments/44224515","id":44224515,"diff_hunk":"@@ -89,6 +91,33 @@ namespace DoLahTest\n             Assert::AreEqual((size_t) 5, resultVector.size());\n         }\n \n+        TEST_METHOD(SearchDateTaskCommand) {\n+            //Arrange\n+            DoLah::Calendar testCal;\n+            DoLah::AbstractCommand* command;\n+            command = DoLah::CommandParser::parse(\"add task1 by next week\");\n+            command->setCalendar(&testCal);\n+            command->execute();\n+            command = DoLah::CommandParser::parse(\"add task2 in 2 weeks\");\n+            command->setCalendar(&testCal);\n+            command->execute();\n+            command = DoLah::CommandParser::parse(\"add task3 from today to next week\");\n+            command->setCalendar(&testCal);\n+            command->execute();\n+            command = DoLah::CommandParser::parse(\"done 3\");\n+            command->setCalendar(&testCal);\n+            command->execute();\n+            command = DoLah::CommandParser::parse(\"search in 10 days\");\n+            command->setCalendar(&testCal);\n+            command->execute();","path":"DoLahTest/CommandUnitTest.cpp","position":31,"original_position":31,"commit_id":"07f335208b35b8e92813bc486abde8b34081c75f","original_commit_id":"07f335208b35b8e92813bc486abde8b34081c75f","user":{"login":"9gix","id":493668,"avatar_url":"https://avatars.githubusercontent.com/u/493668?v=3","gravatar_id":"","url":"https://api.github.com/users/9gix","html_url":"https://github.com/9gix","followers_url":"https://api.github.com/users/9gix/followers","following_url":"https://api.github.com/users/9gix/following{/other_user}","gists_url":"https://api.github.com/users/9gix/gists{/gist_id}","starred_url":"https://api.github.com/users/9gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9gix/subscriptions","organizations_url":"https://api.github.com/users/9gix/orgs","repos_url":"https://api.github.com/users/9gix/repos","events_url":"https://api.github.com/users/9gix/events{/privacy}","received_events_url":"https://api.github.com/users/9gix/received_events","type":"User","site_admin":false},"body":"This is part of the act","created_at":"2015-11-08T13:12:51Z","updated_at":"2015-11-08T13:12:51Z","html_url":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203#discussion_r44224515","pull_request_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/comments/44224515"},"html":{"href":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203#discussion_r44224515"},"pull_request":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203","id":50058560,"html_url":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203","diff_url":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203.diff","patch_url":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203.patch","issue_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/203","number":203,"state":"open","locked":false,"title":"feature / dateSearch","user":{"login":"bsmmoon","id":9209227,"avatar_url":"https://avatars.githubusercontent.com/u/9209227?v=3","gravatar_id":"","url":"https://api.github.com/users/bsmmoon","html_url":"https://github.com/bsmmoon","followers_url":"https://api.github.com/users/bsmmoon/followers","following_url":"https://api.github.com/users/bsmmoon/following{/other_user}","gists_url":"https://api.github.com/users/bsmmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/bsmmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsmmoon/subscriptions","organizations_url":"https://api.github.com/users/bsmmoon/orgs","repos_url":"https://api.github.com/users/bsmmoon/repos","events_url":"https://api.github.com/users/bsmmoon/events{/privacy}","received_events_url":"https://api.github.com/users/bsmmoon/received_events","type":"User","site_admin":false},"body":"Search by date implemented.\r\nex. search by tomorrow\r\n\r\ncloses #188 \r\ncloses #205 ","created_at":"2015-11-08T11:44:31Z","updated_at":"2015-11-08T13:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea0fbc1af18161f244d248501300af86da14eb29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203/commits","review_comments_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203/comments","review_comment_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/203/comments","statuses_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/statuses/07f335208b35b8e92813bc486abde8b34081c75f","head":{"label":"cs2103aug2015-w11-2c:feature/dateSearch","ref":"feature/dateSearch","sha":"07f335208b35b8e92813bc486abde8b34081c75f","user":{"login":"cs2103aug2015-w11-2c","id":13845900,"avatar_url":"https://avatars.githubusercontent.com/u/13845900?v=3","gravatar_id":"","url":"https://api.github.com/users/cs2103aug2015-w11-2c","html_url":"https://github.com/cs2103aug2015-w11-2c","followers_url":"https://api.github.com/users/cs2103aug2015-w11-2c/followers","following_url":"https://api.github.com/users/cs2103aug2015-w11-2c/following{/other_user}","gists_url":"https://api.github.com/users/cs2103aug2015-w11-2c/gists{/gist_id}","starred_url":"https://api.github.com/users/cs2103aug2015-w11-2c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs2103aug2015-w11-2c/subscriptions","organizations_url":"https://api.github.com/users/cs2103aug2015-w11-2c/orgs","repos_url":"https://api.github.com/users/cs2103aug2015-w11-2c/repos","events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/events{/privacy}","received_events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/received_events","type":"Organization","site_admin":false},"repo":{"id":40953809,"name":"DoLah","full_name":"cs2103aug2015-w11-2c/DoLah","owner":{"login":"cs2103aug2015-w11-2c","id":13845900,"avatar_url":"https://avatars.githubusercontent.com/u/13845900?v=3","gravatar_id":"","url":"https://api.github.com/users/cs2103aug2015-w11-2c","html_url":"https://github.com/cs2103aug2015-w11-2c","followers_url":"https://api.github.com/users/cs2103aug2015-w11-2c/followers","following_url":"https://api.github.com/users/cs2103aug2015-w11-2c/following{/other_user}","gists_url":"https://api.github.com/users/cs2103aug2015-w11-2c/gists{/gist_id}","starred_url":"https://api.github.com/users/cs2103aug2015-w11-2c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs2103aug2015-w11-2c/subscriptions","organizations_url":"https://api.github.com/users/cs2103aug2015-w11-2c/orgs","repos_url":"https://api.github.com/users/cs2103aug2015-w11-2c/repos","events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/events{/privacy}","received_events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cs2103aug2015-w11-2c/DoLah","description":"","fork":false,"url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah","forks_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/forks","keys_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/teams","hooks_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/hooks","issue_events_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/events{/number}","events_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/events","assignees_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/assignees{/user}","branches_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/branches{/branch}","tags_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/tags","blobs_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/refs{/sha}","trees_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/statuses/{sha}","languages_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/languages","stargazers_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/stargazers","contributors_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/contributors","subscribers_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/subscribers","subscription_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/subscription","commits_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/commits{/sha}","git_commits_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/commits{/sha}","comments_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/comments{/number}","issue_comment_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/comments{/number}","contents_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/contents/{+path}","compare_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/merges","archive_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/downloads","issues_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues{/number}","pulls_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls{/number}","milestones_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/milestones{/number}","notifications_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/labels{/name}","releases_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/releases{/id}","created_at":"2015-08-18T06:03:09Z","updated_at":"2015-09-21T08:03:31Z","pushed_at":"2015-11-08T13:04:49Z","git_url":"git://github.com/cs2103aug2015-w11-2c/DoLah.git","ssh_url":"git@github.com:cs2103aug2015-w11-2c/DoLah.git","clone_url":"https://github.com/cs2103aug2015-w11-2c/DoLah.git","svn_url":"https://github.com/cs2103aug2015-w11-2c/DoLah","homepage":null,"size":6783,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":0,"default_branch":"master"}},"base":{"label":"cs2103aug2015-w11-2c:master","ref":"master","sha":"4b61cdc7549adf7706c464a84e17cd1d9606dcd7","user":{"login":"cs2103aug2015-w11-2c","id":13845900,"avatar_url":"https://avatars.githubusercontent.com/u/13845900?v=3","gravatar_id":"","url":"https://api.github.com/users/cs2103aug2015-w11-2c","html_url":"https://github.com/cs2103aug2015-w11-2c","followers_url":"https://api.github.com/users/cs2103aug2015-w11-2c/followers","following_url":"https://api.github.com/users/cs2103aug2015-w11-2c/following{/other_user}","gists_url":"https://api.github.com/users/cs2103aug2015-w11-2c/gists{/gist_id}","starred_url":"https://api.github.com/users/cs2103aug2015-w11-2c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs2103aug2015-w11-2c/subscriptions","organizations_url":"https://api.github.com/users/cs2103aug2015-w11-2c/orgs","repos_url":"https://api.github.com/users/cs2103aug2015-w11-2c/repos","events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/events{/privacy}","received_events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/received_events","type":"Organization","site_admin":false},"repo":{"id":40953809,"name":"DoLah","full_name":"cs2103aug2015-w11-2c/DoLah","owner":{"login":"cs2103aug2015-w11-2c","id":13845900,"avatar_url":"https://avatars.githubusercontent.com/u/13845900?v=3","gravatar_id":"","url":"https://api.github.com/users/cs2103aug2015-w11-2c","html_url":"https://github.com/cs2103aug2015-w11-2c","followers_url":"https://api.github.com/users/cs2103aug2015-w11-2c/followers","following_url":"https://api.github.com/users/cs2103aug2015-w11-2c/following{/other_user}","gists_url":"https://api.github.com/users/cs2103aug2015-w11-2c/gists{/gist_id}","starred_url":"https://api.github.com/users/cs2103aug2015-w11-2c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs2103aug2015-w11-2c/subscriptions","organizations_url":"https://api.github.com/users/cs2103aug2015-w11-2c/orgs","repos_url":"https://api.github.com/users/cs2103aug2015-w11-2c/repos","events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/events{/privacy}","received_events_url":"https://api.github.com/users/cs2103aug2015-w11-2c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cs2103aug2015-w11-2c/DoLah","description":"","fork":false,"url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah","forks_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/forks","keys_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/teams","hooks_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/hooks","issue_events_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/events{/number}","events_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/events","assignees_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/assignees{/user}","branches_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/branches{/branch}","tags_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/tags","blobs_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/refs{/sha}","trees_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/statuses/{sha}","languages_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/languages","stargazers_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/stargazers","contributors_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/contributors","subscribers_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/subscribers","subscription_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/subscription","commits_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/commits{/sha}","git_commits_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/git/commits{/sha}","comments_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/comments{/number}","issue_comment_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/comments{/number}","contents_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/contents/{+path}","compare_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/merges","archive_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/downloads","issues_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues{/number}","pulls_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls{/number}","milestones_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/milestones{/number}","notifications_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/labels{/name}","releases_url":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/releases{/id}","created_at":"2015-08-18T06:03:09Z","updated_at":"2015-09-21T08:03:31Z","pushed_at":"2015-11-08T13:04:49Z","git_url":"git://github.com/cs2103aug2015-w11-2c/DoLah.git","ssh_url":"git@github.com:cs2103aug2015-w11-2c/DoLah.git","clone_url":"https://github.com/cs2103aug2015-w11-2c/DoLah.git","svn_url":"https://github.com/cs2103aug2015-w11-2c/DoLah","homepage":null,"size":6783,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203"},"html":{"href":"https://github.com/cs2103aug2015-w11-2c/DoLah/pull/203"},"issue":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/203"},"comments":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/cs2103aug2015-w11-2c/DoLah/statuses/07f335208b35b8e92813bc486abde8b34081c75f"}}}}