aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_utils.cpp')
-rw-r--r--src/tests/test_utils.cpp8
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());
}
}
}