diff options
Diffstat (limited to 'domain/tests/disposition.cpp')
| -rw-r--r-- | domain/tests/disposition.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/domain/tests/disposition.cpp b/domain/tests/disposition.cpp deleted file mode 100644 index 0d91867..0000000 --- a/domain/tests/disposition.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "turns/domain/disposition.hpp" - -#include <catch2/catch_test_macros.hpp> -#include <catch2/generators/catch_generators.hpp> - -#include <compare> -#include <format> -#include <limits> -#include <utility> - -#include <glibmm/i18n.h> -#include <glibmm/ustring.h> - -namespace turns::domain::tests -{ - - TEST_CASE("to_presentation_name returns the correct string for the current language", "[disposition]") - { - auto [value, name] = GENERATE(std::pair{disposition::neutral, Glib::ustring{_("Neutral")}}, - std::pair{disposition::friendly, Glib::ustring{_("Friendly")}}, - std::pair{disposition::hostile, Glib::ustring{_("Hostile")}}, - std::pair{disposition::secret, Glib::ustring{_("Secret")}}, - std::pair{static_cast<disposition>(std::numeric_limits<std::underlying_type_t<disposition>>::max()), - Glib::ustring{_("Unknown disposition value")}}); - - SECTION(std::format("the presentation name for '{}' is '{}'", static_cast<std::underlying_type_t<disposition>>(value), name.c_str())) - { - REQUIRE(presentation_name_for(value) == name); - } - } - -} // namespace turns::domain::tests
\ No newline at end of file |
