diff options
author | Jack Lloyd <[email protected]> | 2020-02-11 10:14:02 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-02-11 10:14:02 -0500 |
commit | b45368f0681c8f93e16a7b37d4fe8e70859da8b2 (patch) | |
tree | 9d4e39a7b549dfdaf3cb27d7b8ffce702c82771c /src/tests/test_roughtime.cpp | |
parent | 32dffc0e88ce147c9734e87d0dadc4730da63373 (diff) |
Fix some maintainer mode warnings
Diffstat (limited to 'src/tests/test_roughtime.cpp')
-rw-r--r-- | src/tests/test_roughtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_roughtime.cpp b/src/tests/test_roughtime.cpp index 65bd671bb..376e54c97 100644 --- a/src/tests/test_roughtime.cpp +++ b/src/tests/test_roughtime.cpp @@ -140,10 +140,10 @@ class Roughtime final : public Test Botan::Roughtime::Nonce nonce_a(Botan::typecast_copy<std::array<uint8_t, 64>>(rand64.data())); result.confirm("nonce from array", nonce_v.get_nonce() == Botan::typecast_copy<std::array<uint8_t, 64>>(rand64.data())); rand64.push_back(10); - result.test_throws("vector oversize", [&rand64]() {Botan::Roughtime::Nonce nonce_v(rand64);}); //size 65 + result.test_throws("vector oversize", [&rand64]() {Botan::Roughtime::Nonce nonce_v2(rand64);}); //size 65 rand64.pop_back(); rand64.pop_back(); - result.test_throws("vector undersize", [&rand64]() {Botan::Roughtime::Nonce nonce_v(rand64);}); //size 63 + result.test_throws("vector undersize", [&rand64]() {Botan::Roughtime::Nonce nonce_v2(rand64);}); //size 63 return result; } |