diff options
author | Simon Warta <[email protected]> | 2015-06-19 13:11:49 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-19 13:11:49 +0200 |
commit | 6750b13cc04e4a6a2f1aad364f74d0042d1da766 (patch) | |
tree | e4f4ee0dfe1787867218c1d8c334a2382318e057 /src/tests/test_rfc6979.cpp | |
parent | b9c03ac33472b00a3eeb8bc00b7f37ef610a4eac (diff) |
Replace \n by std::endl in tests to ensure proper flushing
- Remove additional newlines in CHECK_MESSAGE call
- Remove redundant output of algo in aead_test()
Closes #115
Diffstat (limited to 'src/tests/test_rfc6979.cpp')
-rw-r--r-- | src/tests/test_rfc6979.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_rfc6979.cpp b/src/tests/test_rfc6979.cpp index c0bdd5822..772a492c3 100644 --- a/src/tests/test_rfc6979.cpp +++ b/src/tests/test_rfc6979.cpp @@ -38,7 +38,7 @@ size_t rfc6979_testcase(const std::string& q_str, if(gen_k != exp_k) { std::cout << "RFC 6979 test #" << testcase << " failed; generated k=" - << std::hex << gen_k << "\n"; + << std::hex << gen_k << std::endl; ++fails; } @@ -48,7 +48,7 @@ size_t rfc6979_testcase(const std::string& q_str, if(gen_0 != exp_k) { std::cout << "RFC 6979 test #" << testcase << " failed; generated k=" - << std::hex << gen_0 << " (gen_0)\n"; + << std::hex << gen_0 << " (gen_0)" << std::endl; ++fails; } @@ -56,7 +56,7 @@ size_t rfc6979_testcase(const std::string& q_str, if(gen_1 == exp_k) { std::cout << "RFC 6979 test #" << testcase << " failed; generated k=" - << std::hex << gen_1 << " (gen_1)\n"; + << std::hex << gen_1 << " (gen_1)" << std::endl; ++fails; } @@ -64,7 +64,7 @@ size_t rfc6979_testcase(const std::string& q_str, if(gen_2 != exp_k) { std::cout << "RFC 6979 test #" << testcase << " failed; generated k=" - << std::hex << gen_2 << " (gen_2)\n"; + << std::hex << gen_2 << " (gen_2)" << std::endl; ++fails; } |