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_compression.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_compression.cpp')
-rw-r--r-- | src/tests/test_compression.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_compression.cpp b/src/tests/test_compression.cpp index 2dc8f65e2..9b83737a0 100644 --- a/src/tests/test_compression.cpp +++ b/src/tests/test_compression.cpp @@ -25,7 +25,7 @@ size_t run_compression(Compressor_Transform& c, Transform& d, if(msg != decompressed) { std::cout << hex_encode(msg) << " compressed to " << hex_encode(compressed) - << " but did not roundtrip - " << hex_encode(decompressed) << "\n"; + << " but did not roundtrip - " << hex_encode(decompressed) << std::endl; } return c_size; @@ -103,7 +103,7 @@ size_t test_compression() const size_t c1_t = run_compression(*c1, *d, text); const size_t c9_t = run_compression(*c9, *d, text); -#define BOTAN_TEST_GTE(x, y, msg) if(x < y) { ++fails; std::cout << "FAIL: " << x << " " << y << " " << msg << '\n'; } +#define BOTAN_TEST_GTE(x, y, msg) if(x < y) { ++fails; std::cout << "FAIL: " << x << " " << y << " " << msg << std::endl; } BOTAN_TEST_GTE(c1_z, c9_z, "Level 9 compresses at least as well as level 1"); BOTAN_TEST_GTE(c1_t, c9_t, "Level 9 compresses at least as well as level 1"); @@ -114,7 +114,7 @@ size_t test_compression() } catch(std::exception& e) { - std::cout << "Failure testing " << algo << " - " << e.what() << "\n"; + std::cout << "Failure testing " << algo << " - " << e.what() << std::endl; ++fails; } } |