From 3de69d3298d6512b05c237557224d7d8c09acbfe Mon Sep 17 00:00:00 2001 From: hashlag Date: Mon, 2 Feb 2026 01:15:38 +0300 Subject: [PATCH] Fix assertion style. It should be expectation-first... --- ChaosTests/Cipher/DesCryptTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChaosTests/Cipher/DesCryptTests.cpp b/ChaosTests/Cipher/DesCryptTests.cpp index de6dd65..1c8539f 100644 --- a/ChaosTests/Cipher/DesCryptTests.cpp +++ b/ChaosTests/Cipher/DesCryptTests.cpp @@ -389,7 +389,7 @@ TEST(DesCryptTests, OutIteratorUsageEncryptTest) DesCrypt::DesEncryptor enc(desKey); enc.EncryptBlock(fact.begin(), fact.end() - 3, data.begin(), data.end()); - ASSERT_EQ(fact, expected); + ASSERT_EQ(expected, fact); } { @@ -404,7 +404,7 @@ TEST(DesCryptTests, OutIteratorUsageEncryptTest) DesCrypt::DesEncryptor enc(desKey); enc.EncryptBlock(fact.begin(), fact.end() - 4, data.begin(), data.end()); - ASSERT_EQ(fact, expected); + ASSERT_EQ(expected, fact); } }