![]() |
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>
#include "color4d_test_utils.h"
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <gal/color4d.h>
Go to the source code of this file.
Classes | |
struct | COLOR_SCALAR_CASE |
Test case data for a test that takes a colour and a scalar factor and returns a result. More... | |
struct | FROM_HSV_TO_HEX_CASE |
struct | FROM_HSL_TO_HEX_CASE |
Functions | |
BOOST_AUTO_TEST_CASE (BasicOps) | |
Declares a struct as the Boost test fixture. More... | |
BOOST_AUTO_TEST_CASE (Invert) | |
Check inversion. More... | |
BOOST_AUTO_TEST_CASE (Brighten) | |
Check inversion. More... | |
BOOST_AUTO_TEST_CASE (Darken) | |
Check darken. More... | |
BOOST_AUTO_TEST_CASE (WithAlpha) | |
Check alpha setting. More... | |
BOOST_AUTO_TEST_CASE (FromHsv) | |
Check FromHSV. More... | |
BOOST_AUTO_TEST_CASE (FromHsl) | |
Check FromHSL. More... | |
BOOST_AUTO_TEST_CASE | ( | BasicOps | ) |
Declares a struct as the Boost test fixture.
Check basic setting and getting of values
Definition at line 49 of file test_color4d.cpp.
BOOST_AUTO_TEST_CASE | ( | Invert | ) |
BOOST_AUTO_TEST_CASE | ( | Brighten | ) |
BOOST_AUTO_TEST_CASE | ( | Darken | ) |
BOOST_AUTO_TEST_CASE | ( | WithAlpha | ) |
BOOST_AUTO_TEST_CASE | ( | FromHsv | ) |
Check FromHSV.
Definition at line 191 of file test_color4d.cpp.
References KIGFX::COLOR4D::FromHSV(), and KI_TEST::IsColorNearHex().
BOOST_AUTO_TEST_CASE | ( | FromHsl | ) |
Check FromHSL.
Definition at line 233 of file test_color4d.cpp.
References KIGFX::COLOR4D::FromHSL(), and KI_TEST::IsColorNearHex().