1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
5 // Copyright (C) 2018-2019 Intel Corporation
8 #include "test_precomp.hpp"
9 #include "opencv2/gapi/own/scalar.hpp"
14 TEST(Scalar, CreateEmpty)
16 cv::gapi::own::Scalar s;
18 for (int i = 0; i < 4; ++i)
24 TEST(Scalar, CreateFromVal)
26 cv::gapi::own::Scalar s(5.0);
34 TEST(Scalar, CreateFromVals)
36 cv::gapi::own::Scalar s(5.3, 3.3, 4.1, -2.0);
41 EXPECT_EQ(s[3], -2.0);
44 } // namespace opencv_test