summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
commitb7de164d6251dc066123b59bc15d30c74e920756 (patch)
tree650e67242386d55616a2038c5cbc7042568ed377 /datatest.cpp
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp14
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;