#include #include #include #include "main.h" class InternalsTest : public :: testing::Test { protected: void SetUp() override { setlocale(LC_ALL, ""); } }; TEST_F(InternalsTest, RGBtoANSIWhite) { unsigned r, g, b; r = g = b = 0xff; EXPECT_EQ(255, rgb_to_ansi256(r, g, b)); }