diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-02 10:48:53 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-02 10:48:53 +0200 |
| commit | 917d1bc227490918854b827a856fd0613745c452 (patch) | |
| tree | a8217745bcee81a68db66dde0d445059a2922458 /ui/tests | |
| parent | 78703adbd515c220e3cc42e624e1af62145a631f (diff) | |
| download | turns-917d1bc227490918854b827a856fd0613745c452.tar.xz turns-917d1bc227490918854b827a856fd0613745c452.zip | |
core: uppercase Disposition values
Diffstat (limited to 'ui/tests')
| -rw-r--r-- | ui/tests/participant_editor.cpp | 12 | ||||
| -rw-r--r-- | ui/tests/participant_row.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/tests/participant_editor.cpp b/ui/tests/participant_editor.cpp index a9ceb44..fee0313 100644 --- a/ui/tests/participant_editor.cpp +++ b/ui/tests/participant_editor.cpp @@ -31,7 +31,7 @@ namespace turns::ui::tests auto locale = GENERATE("en_US.UTF-8", "de_CH.UTF-8"); setlocale(LC_ALL, locale); - auto participant = core::Participant::create("Frederick Thumblewackle", 7.2, core::Disposition::friendly); + auto participant = core::Participant::create("Frederick Thumblewackle", 7.2, core::Disposition::Friendly); auto instance = std::make_shared<ParticipantEditor>(nullptr); auto window = Gtk::Window{}; @@ -62,7 +62,7 @@ namespace turns::ui::tests SECTION("has neutral disposition") { - REQUIRE(instance->get_disposition() == core::Disposition::neutral); + REQUIRE(instance->get_disposition() == core::Disposition::Neutral); } SECTION("has a null participant") @@ -95,9 +95,9 @@ namespace turns::ui::tests THEN("changes to the disposition propagate to the participant") { - CHECK(participant->get_disposition() != core::Disposition::secret); - instance->set_disposition(core::Disposition::secret); - REQUIRE(participant->get_disposition() == core::Disposition::secret); + CHECK(participant->get_disposition() != core::Disposition::Secret); + instance->set_disposition(core::Disposition::Secret); + REQUIRE(participant->get_disposition() == core::Disposition::Secret); } } @@ -112,7 +112,7 @@ namespace turns::ui::tests auto locale = GENERATE("en_US.UTF-8", "de_CH.UTF-8"); setlocale(LC_ALL, locale); - auto participant = core::Participant::create("Qibi Babblebranch", 12, core::Disposition::neutral); + auto participant = core::Participant::create("Qibi Babblebranch", 12, core::Disposition::Neutral); auto instance = std::make_shared<ParticipantEditor>(participant); auto window = Gtk::Window{}; diff --git a/ui/tests/participant_row.cpp b/ui/tests/participant_row.cpp index c02b3f0..20eaa5c 100644 --- a/ui/tests/participant_row.cpp +++ b/ui/tests/participant_row.cpp @@ -23,7 +23,7 @@ namespace turns::ui::tests SECTION("can be created with a participant") { - REQUIRE(std::make_shared<ParticipantRow>(core::Participant::create("Tazmyla Fireforge", 13, core::Disposition::secret))); + REQUIRE(std::make_shared<ParticipantRow>(core::Participant::create("Tazmyla Fireforge", 13, core::Disposition::Secret))); } } |
