Skip to content

Commit

Permalink
test: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 19, 2023
1 parent f3ce121 commit 4b5a6cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/entt/process/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ struct Scheduler: ::testing::Test {

TEST_F(Scheduler, Functionalities) {
entt::scheduler scheduler{};
entt::scheduler other{std::move(scheduler)};

scheduler = std::move(other);

bool updated = false;
bool aborted = false;

ASSERT_NO_FATAL_FAILURE([[maybe_unused]] const entt::scheduler other{entt::scheduler{}});
ASSERT_NO_FATAL_FAILURE(scheduler = entt::scheduler{});

ASSERT_EQ(scheduler.size(), 0u);
ASSERT_TRUE(scheduler.empty());

Expand Down
7 changes: 4 additions & 3 deletions test/entt/signal/dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ struct receiver {

TEST(Dispatcher, Functionalities) {
entt::dispatcher dispatcher{};
receiver receiver{};
entt::dispatcher other{std::move(dispatcher)};

dispatcher = std::move(other);

ASSERT_NO_FATAL_FAILURE([[maybe_unused]] const entt::dispatcher other{entt::dispatcher{}});
ASSERT_NO_FATAL_FAILURE(dispatcher = entt::dispatcher{});
receiver receiver{};

ASSERT_EQ(dispatcher.size<an_event>(), 0u);
ASSERT_EQ(dispatcher.size(), 0u);
Expand Down

0 comments on commit 4b5a6cd

Please sign in to comment.