From 815962f4eceb94c41a002743689df0d0b21707d4 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 26 Feb 2016 23:55:37 +0300 Subject: [PATCH] Update testing.h --- tests/testing.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testing.h b/tests/testing.h index 4be9699..0fc41e4 100644 --- a/tests/testing.h +++ b/tests/testing.h @@ -121,8 +121,6 @@ private: case LITERAL: bright = true; color = 5; break; case EXPRESSION: bright = true; color = 7; break; case DESCRIPTION: bright = true; color = 4; break; - default: - return str; } std::ostringstream ss; @@ -383,7 +381,9 @@ public: #define RESET_FLAGS() do { tester_.ResetFlags(); } while(0) // flags -#define NON_FATAL Tester::NON_FATAL -#define HIDE_MESSAGE Tester::HIDE_MESSAGE +enum { + NON_FATAL = Tester::Flags::NON_FATAL, + HIDE_MESSAGE = Tester::Flags::HIDE_MESSAGE +}; #endif // TESTING_H_INCLUDED