aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_octetstring.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-03-01 09:00:47 -0500
committerJack Lloyd <[email protected]>2019-03-01 09:00:47 -0500
commit89b1838943e37b8f11b77f336691c9c6d250587b (patch)
treec113ee182197f7f54b58a6af00df3640a120ba04 /src/tests/test_octetstring.cpp
parentff9174588a7ab7c1f7c2c88f24cb9a01dc6381f8 (diff)
s/as_string/to_string/
A few older APIs use as_string where everywhere else uses to_string. Add to_string's where missing, and deprecate X::as_string.
Diffstat (limited to 'src/tests/test_octetstring.cpp')
-rw-r--r--src/tests/test_octetstring.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_octetstring.cpp b/src/tests/test_octetstring.cpp
index b9692559e..3b0fd11f4 100644
--- a/src/tests/test_octetstring.cpp
+++ b/src/tests/test_octetstring.cpp
@@ -60,12 +60,12 @@ Test::Result test_odd_parity()
return result;
}
-Test::Result test_as_string()
+Test::Result test_to_string()
{
Test::Result result("OctetString");
Botan::OctetString os("0123456789ABCDEF");
- result.test_eq("OctetString::as_string() returns correct string", os.as_string(), "0123456789ABCDEF");
+ result.test_eq("OctetString::to_string() returns correct string", os.to_string(), "0123456789ABCDEF");
return result;
}
@@ -139,7 +139,7 @@ class OctetString_Tests final : public Test
test_from_hex,
test_from_byte,
test_odd_parity,
- test_as_string,
+ test_to_string,
test_xor,
test_equality,
test_append