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_passhash.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_passhash.cpp')
-rw-r--r-- | src/tests/test_passhash.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/test_passhash.cpp b/src/tests/test_passhash.cpp index 17aef2204..4bc69125b 100644 --- a/src/tests/test_passhash.cpp +++ b/src/tests/test_passhash.cpp @@ -27,7 +27,7 @@ size_t test_bcrypt() // Generated by jBCrypt 0.3 if(!check_bcrypt("abc", "$2a$05$DfPyLs.G6.To9fXEFgUL1O6HpYw3jIXgPcl/L3Qt3jESuWmhxtmpS")) { - std::cout << "Bcrypt test 1 failed\n"; + std::cout << "Bcrypt test 1 failed" << std::endl; fails++; } @@ -35,7 +35,7 @@ size_t test_bcrypt() if(!check_bcrypt("\xA3", "$2a$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq")) { - std::cout << "Bcrypt test 2 failed\n"; + std::cout << "Bcrypt test 2 failed" << std::endl; fails++; } @@ -48,7 +48,7 @@ size_t test_bcrypt() if(!check_bcrypt(input, gen_hash)) { - std::cout << "Gen and check for bcrypt failed: " << gen_hash << " not valid\n"; + std::cout << "Gen and check for bcrypt failed: " << gen_hash << " not valid" << std::endl; ++fails; } } @@ -74,7 +74,7 @@ size_t test_passhash9() ++ran; if(!check_passhash9(input, fixed_hash)) { - std::cout << "Passhash9 fixed input test failed\n"; + std::cout << "Passhash9 fixed input test failed" << std::endl; fails++; } @@ -87,7 +87,7 @@ size_t test_passhash9() ++ran; if(!check_passhash9(input, gen_hash)) { - std::cout << "Passhash9 gen and check " << static_cast<int>(alg_id) << " failed\n"; + std::cout << "Passhash9 gen and check " << static_cast<int>(alg_id) << " failed" << std::endl; ++fails; } } |