From 1b567e3aefe4b121ad07eee20ab2e79b953510aa Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 30 Apr 2024 12:20:34 +0200 Subject: [PATCH] reset countdown after each assert --- test/input_stream_ops.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/input_stream_ops.cpp b/test/input_stream_ops.cpp index dfa7b2b..8f6aedc 100644 --- a/test/input_stream_ops.cpp +++ b/test/input_stream_ops.cpp @@ -19,10 +19,14 @@ TEST_START() ss >> c; assert(c == Countdown::NONE, "failed to parse enum all lowercase"); + c = Countdown::NORMAL; + ss = std::stringstream("nOnE"); ss >> c; assert(c == Countdown::NONE, "failed to parse enum mixed case #1"); + c = Countdown::NORMAL; + ss = std::stringstream("NoNe"); ss >> c; assert(c == Countdown::NONE, "failed to parse enum mixed case #2");