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_aead.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_aead.cpp')
-rw-r--r-- | src/tests/test_aead.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp index f5445f8e2..e9f002e19 100644 --- a/src/tests/test_aead.cpp +++ b/src/tests/test_aead.cpp @@ -53,8 +53,7 @@ size_t aead_test(const std::string& algo, if(vec != expected_ct) { - std::cout << algo << " got ct " << hex_encode(vec) << " expected " << expected << "\n"; - std::cout << algo << "\n"; + std::cout << algo << " got ct " << hex_encode(vec) << " expected " << expected << std::endl; ++fail; } @@ -65,7 +64,7 @@ size_t aead_test(const std::string& algo, if(vec != pt) { - std::cout << algo << " got pt " << hex_encode(vec) << " expected " << input << "\n"; + std::cout << algo << " got pt " << hex_encode(vec) << " expected " << input << std::endl; ++fail; } @@ -77,7 +76,7 @@ size_t aead_test(const std::string& algo, try { dec->finish(vec); - std::cout << algo << " accepted message with modified message\n"; + std::cout << algo << " accepted message with modified message" << std::endl; ++fail; } catch(...) {} @@ -93,7 +92,7 @@ size_t aead_test(const std::string& algo, try { dec->finish(vec); - std::cout << algo << " accepted message with modified nonce\n"; + std::cout << algo << " accepted message with modified nonce" << std::endl; ++fail; } catch(...) {} @@ -116,7 +115,7 @@ size_t aead_test(const std::string& algo, try { dec->finish(vec); - std::cout << algo << " accepted message with modified AD\n"; + std::cout << algo << " accepted message with modified AD" << std::endl; ++fail; } catch(...) {} |