You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
468 B
20 lines
468 B
#include <catch2/catch_test_macros.hpp>
|
|
#include <fmt/core.h>
|
|
#include <string>
|
|
#include "palette.hpp"
|
|
|
|
using namespace fmt;
|
|
|
|
TEST_CASE("color palette test", "[color-palette]") {
|
|
palette::init();
|
|
sf::Color expect{10, 10, 10, 255};
|
|
|
|
auto gui_text = palette::get("gui/theme:dark_dark");
|
|
REQUIRE(gui_text == expect);
|
|
|
|
gui_text = palette::get("gui/theme", "mid");
|
|
REQUIRE(gui_text != expect);
|
|
|
|
expect = {100, 100, 100, 255};
|
|
REQUIRE(gui_text == expect);
|
|
}
|
|
|