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_mac.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_mac.cpp')
-rw-r--r-- | src/tests/test_mac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_mac.cpp b/src/tests/test_mac.cpp index 302f39625..e191a6ed7 100644 --- a/src/tests/test_mac.cpp +++ b/src/tests/test_mac.cpp @@ -26,7 +26,7 @@ size_t mac_test(const std::string& algo, if(providers.empty()) { - std::cout << "Unknown algo " << algo << "\n"; + std::cout << "Unknown algo " << algo << std::endl; ++fails; } @@ -36,7 +36,7 @@ size_t mac_test(const std::string& algo, if(!mac) { - std::cout << "Unable to get " << algo << " from " << provider << "\n"; + std::cout << "Unable to get " << algo << " from " << provider << std::endl; ++fails; continue; } @@ -52,7 +52,7 @@ size_t mac_test(const std::string& algo, if(out != exp) { - std::cout << algo << " " << provider << " got " << hex_encode(out) << " != " << hex_encode(exp) << "\n"; + std::cout << algo << " " << provider << " got " << hex_encode(out) << " != " << hex_encode(exp) << std::endl; ++fails; } @@ -67,7 +67,7 @@ size_t mac_test(const std::string& algo, if(out2 != exp) { - std::cout << algo << " " << provider << " got " << hex_encode(out2) << " != " << hex_encode(exp) << "\n"; + std::cout << algo << " " << provider << " got " << hex_encode(out2) << " != " << hex_encode(exp) << std::endl; ++fails; } } |