diff options
author | Jack Lloyd <[email protected]> | 2019-03-01 09:00:47 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-03-01 09:00:47 -0500 |
commit | 89b1838943e37b8f11b77f336691c9c6d250587b (patch) | |
tree | c113ee182197f7f54b58a6af00df3640a120ba04 /src/tests/test_octetstring.cpp | |
parent | ff9174588a7ab7c1f7c2c88f24cb9a01dc6381f8 (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.cpp | 6 |
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 |