From 891bf38d8580b83cdf6ae315cb2650dae7d79006 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 10 May 2022 19:18:32 +0800 Subject: ... --- test/common/HandlerRegistryTest.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/common/HandlerRegistryTest.cpp') diff --git a/test/common/HandlerRegistryTest.cpp b/test/common/HandlerRegistryTest.cpp index cf64ef4d..03e190e3 100644 --- a/test/common/HandlerRegistryTest.cpp +++ b/test/common/HandlerRegistryTest.cpp @@ -1,9 +1,10 @@ #include "cru/common/HandlerRegistry.h" -#include +#include + #include -TEST(HandlerRegistry, Work) { +TEST_CASE("HandlerRegistry", "[handler_registry]") { using namespace cru; HandlerRegistry registry; @@ -16,7 +17,7 @@ TEST(HandlerRegistry, Work) { handler(); } - ASSERT_EQ(counter, 3); + REQUIRE(counter == 3); registry.RemoveHandler(tag1); @@ -24,7 +25,7 @@ TEST(HandlerRegistry, Work) { handler(); } - ASSERT_EQ(counter, 4); + REQUIRE(counter == 4); registry.RemoveHandler(tag2); @@ -32,5 +33,5 @@ TEST(HandlerRegistry, Work) { handler(); } - ASSERT_EQ(counter, 4); + REQUIRE(counter == 4); } -- cgit v1.2.3