GitHub PullRequestReviewCommentEvent at 2014-04-05 17:41:13
Repository: itlab-vision
Actor: valentina-kustikova
Payload: {"comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/itlab-vision/pulls/comments/11322280","id":11322280,"diff_hunk":"@@ -5,7 +5,14 @@\n using namespace cv;\n \n TEST(photoeffects, FadeColorTest) {\n-    Mat image(10, 20, CV_8UC1);\n+    Mat imageWithOneChannel(10, 20, CV_8UC1);\n+    Mat imageWithThreeChannel(10,20,CV_8UC3);\n+    Mat imageWithTwoChannel(10,20,CV_8UC2),dst;\n \n-    EXPECT_EQ(0, fadeColor(image,image));\n+    EXPECT_EQ(0, fadeColor(imageWithOneChannel,dst,Point(5,5),Point(5,10)));\n+    EXPECT_EQ(0, fadeColor(imageWithThreeChannel,dst,Point(5,5),Point(5,10)));\n+    EXPECT_EQ(1, fadeColor(imageWithTwoChannel,dst,Point(5,5),Point(5,10)));\n+    EXPECT_EQ(2, fadeColor(imageWithOneChannel,dst,Point(50,5),Point(5,10)));\n+    EXPECT_EQ(2, fadeColor(imageWithOneChannel,dst,Point(5,5),Point(5,-10)));\n+    EXPECT_EQ(3, fadeColor(imageWithOneChannel,dst,Point(5,5),Point(5,5)));\n }","path":"photoeffects/test/fadeColor_test.cpp","position":16,"original_position":16,"commit_id":"c6d5482f4807335e30da983c845de84d6480e2eb","original_commit_id":"c6d5482f4807335e30da983c845de84d6480e2eb","user":{"login":"valentina-kustikova","id":6958019,"avatar_url":"https://avatars.githubusercontent.com/u/6958019?","gravatar_id":"8583a6ec2deccd0735fdb64d34b82a62","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"body":"Да, но во всех остальных значение то же самое, поэтому этой проверки достаточно.","created_at":"2014-04-05T17:41:13Z","updated_at":"2014-04-05T17:41:13Z","html_url":"https://github.com/UNN-VMK-Software/itlab-vision/pull/17#discussion_r11322280","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/itlab-vision/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/itlab-vision/pulls/comments/11322280"},"html":{"href":"https://github.com/UNN-VMK-Software/itlab-vision/pull/17#discussion_r11322280"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/itlab-vision/pulls/17"}}}}