reset countdown after each assert

This commit is contained in:
jacekpoz 2024-04-30 12:20:34 +02:00
parent 396d9418fe
commit 1b567e3aef
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -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");