diff options
author | Jack Lloyd <[email protected]> | 2015-11-28 11:50:44 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-11-28 11:50:44 -0500 |
commit | 62cad8095bdf68a339e219d3d78ab7a977e87e91 (patch) | |
tree | 08e8e7d53210a33da16ad4cd0f267a94c293b456 /src/tests/test_utils.cpp | |
parent | 466cc0fb0b1a072584c26f0949d377510c440d0d (diff) |
Convert const char* arguments on Test:: to std::strings
unless they are actually optional
Diffstat (limited to 'src/tests/test_utils.cpp')
-rw-r--r-- | src/tests/test_utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_utils.cpp b/src/tests/test_utils.cpp index dfe0b19d3..9ee799519 100644 --- a/src/tests/test_utils.cpp +++ b/src/tests/test_utils.cpp @@ -34,7 +34,7 @@ class Utility_Function_Tests : public Text_Based_Test const size_t x = get_req_sz(vars, "In1"); const size_t to = get_req_sz(vars, "In2"); - result.test_eq(algo.c_str(), Botan::round_up(x, to), get_req_sz(vars, "Out")); + result.test_eq(algo, Botan::round_up(x, to), get_req_sz(vars, "Out")); try { @@ -48,8 +48,8 @@ class Utility_Function_Tests : public Text_Based_Test const size_t x = get_req_sz(vars, "In1"); const size_t to = get_req_sz(vars, "In2"); - result.test_eq(algo.c_str(), Botan::round_down<size_t>(x, to), get_req_sz(vars, "Out")); - result.test_eq(algo.c_str(), Botan::round_down<size_t>(x, 0), x); + result.test_eq(algo, Botan::round_down<size_t>(x, to), get_req_sz(vars, "Out")); + result.test_eq(algo, Botan::round_down<size_t>(x, 0), x); } return result; @@ -313,7 +313,7 @@ class Base64_Tests : public Text_Based_Test } catch(std::exception& e) { - result.test_failure(b64_ws.c_str(), e.what()); + result.test_failure(b64_ws, e.what()); } } } |