From 513240b6982f6bee0bfd3f57905c49d9e2f20410 Mon Sep 17 00:00:00 2001 From: neargye Date: Thu, 18 Apr 2019 14:05:40 +0500 Subject: [PATCH] fix warning --- test/test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.cpp b/test/test.cpp index 25b352d..ef97b7a 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -96,7 +96,6 @@ SomeClass class_var; const SomeClass volatile * ptr_c = nullptr; const Color color = Color::RED; -const Directions directions = Directions::Right; TEST_CASE("NAMEOF") { SECTION("variable") { @@ -105,6 +104,7 @@ TEST_CASE("NAMEOF") { REQUIRE(NAMEOF(struct_var) == "struct_var"); REQUIRE(NAMEOF(::struct_var) == "struct_var"); REQUIRE(NAMEOF(ptr_s) == "ptr_s"); + REQUIRE(NAMEOF(color) == "color"); } SECTION("member") { @@ -141,6 +141,7 @@ TEST_CASE("NAMEOF_FULL") { REQUIRE(NAMEOF_FULL(struct_var) == "struct_var"); REQUIRE(NAMEOF_FULL(::struct_var) == "struct_var"); REQUIRE(NAMEOF_FULL(ptr_s) == "ptr_s"); + REQUIRE(NAMEOF_FULL(color) == "color"); } SECTION("member") { @@ -180,6 +181,7 @@ TEST_CASE("NAMEOF_RAW") { REQUIRE(NAMEOF_RAW(ptr_s) == "ptr_s"); REQUIRE(NAMEOF_RAW(*ptr_s) == "*ptr_s"); REQUIRE(NAMEOF_RAW(ptr_s[0]) == "ptr_s[0]"); + REQUIRE(NAMEOF_RAW(color) == "color"); } SECTION("member") {