diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
| commit | b7de164d6251dc066123b59bc15d30c74e920756 (patch) | |
| tree | 650e67242386d55616a2038c5cbc7042568ed377 /datatest.cpp | |
| parent | 7b64ca489a7e1da36b02b4a35d149275914d8268 (diff) | |
| download | cryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz | |
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'datatest.cpp')
| -rw-r--r-- | datatest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/datatest.cpp b/datatest.cpp index a6be37e9..57b5cc05 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -264,17 +264,17 @@ void TestSignatureScheme(TestData &v) else if (test == "DeterministicSign") { SignalTestError(); - assert(false); // TODO: implement + CRYPTOPP_ASSERT(false); // TODO: implement } else if (test == "RandomSign") { SignalTestError(); - assert(false); // TODO: implement + CRYPTOPP_ASSERT(false); // TODO: implement } else { SignalTestError(); - assert(false); + CRYPTOPP_ASSERT(false); } } @@ -314,7 +314,7 @@ void TestAsymmetricCipher(TestData &v) else { SignalTestError(); - assert(false); + CRYPTOPP_ASSERT(false); } } @@ -412,7 +412,7 @@ void TestSymmetricCipher(TestData &v, const NameValuePairs &overrideParameters) while (ss.Pump(64)) {} ss.PumpAll(); for (int i=0; i<z.length(); i++) - assert(encrypted[i] == z[i]); + CRYPTOPP_ASSERT(encrypted[i] == z[i]); }*/ if (test != "EncryptXorDigest") ciphertext = GetDecodedDatum(v, "Ciphertext"); @@ -577,7 +577,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest) else { SignalTestError(); - assert(false); + CRYPTOPP_ASSERT(false); } } @@ -641,7 +641,7 @@ void OutputPair(const NameValuePairs &v, const char *name) { Integer x; bool b = v.GetValue(name, x); - assert(b); CRYPTOPP_UNUSED(b); + CRYPTOPP_ASSERT(b); CRYPTOPP_UNUSED(b); cout << name << ": \\\n "; x.Encode(HexEncoder(new FileSink(cout), false, 64, "\\\n ").Ref(), x.MinEncodedSize()); cout << endl; |
