From 4dab30ce6fd494e6b5b61cf6942ae440b364ee2b Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 15 Jan 2017 19:36:00 +0100 Subject: [PATCH] Break instead of returning --- tests/TestSymmetricCipher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSymmetricCipher.cpp b/tests/TestSymmetricCipher.cpp index 737778479..3edf735b8 100644 --- a/tests/TestSymmetricCipher.cpp +++ b/tests/TestSymmetricCipher.cpp @@ -169,13 +169,13 @@ void TestSymmetricCipher::testTwofish256CbcEncryption() for (int j = 0; j < 5000; ++j) { ctCur = cipher.process(ptNext, &ok); if (!ok) - return; + break; ptNext = ctPrev; ctPrev = ctCur; ctCur = cipher.process(ptNext, &ok); if (!ok) - return; + break; ptNext = ctPrev; ctPrev = ctCur; } @@ -230,12 +230,12 @@ void TestSymmetricCipher::testTwofish256CbcDecryption() for (int j = 0; j < 5000; ++j) { ptCur = cipher.process(ctNext, &ok); if (!ok) - return; + break; ctNext = ptCur; ptCur = cipher.process(ctNext, &ok); if (!ok) - return; + break; ctNext = ptCur; }