2 #include <opencv2/opencv.hpp> 3 #include <gtest/gtest.h> 6 TEST(RGBColors, testGetRGBColor){
10 EXPECT_EQ(1, color[0]);
11 EXPECT_EQ(0, color[1]);
12 EXPECT_EQ(0, color[2]);
15 EXPECT_EQ(0.502, color[0]);
16 EXPECT_EQ(0.502, color[1]);
17 EXPECT_EQ(0.502, color[2]);
20 int main(
int argc,
char **argv){
21 testing::InitGoogleTest(&argc, argv);
22 return RUN_ALL_TESTS();
cv::Vec3d getRGBColor(const int color)
get rgb color with enum.
TEST(RGBColors, testGetRGBColor)
int main(int argc, char **argv)