diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-06 01:12:49 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 57dc179b1fce5d4b7171311b04667debfe693095 (patch) | |
tree | a459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Tests/AK/TestJSON.cpp | |
parent | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff) | |
download | serenity-57dc179b1fce5d4b7171311b04667debfe693095.zip |
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time
while we convert code, and tracking down remaining uses.
One big exception is Value::to_string() in LibJS, where the name is
dictated by the ToString AO.
Diffstat (limited to 'Tests/AK/TestJSON.cpp')
-rw-r--r-- | Tests/AK/TestJSON.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/AK/TestJSON.cpp b/Tests/AK/TestJSON.cpp index efae314446..a04c3bcf92 100644 --- a/Tests/AK/TestJSON.cpp +++ b/Tests/AK/TestJSON.cpp @@ -40,7 +40,7 @@ TEST_CASE(load_form) EXPECT(form_json.is_object()); - auto name = form_json.as_object().get("name"sv).to_string(); + auto name = form_json.as_object().get("name"sv).to_deprecated_string(); EXPECT_EQ(name, "Form1"); @@ -111,13 +111,13 @@ TEST_CASE(json_duplicate_keys) json.set("test", "foo"); json.set("test", "bar"); json.set("test", "baz"); - EXPECT_EQ(json.to_string(), "{\"test\":\"baz\"}"); + EXPECT_EQ(json.to_deprecated_string(), "{\"test\":\"baz\"}"); } TEST_CASE(json_u64_roundtrip) { auto big_value = 0xffffffffffffffffull; - auto json = JsonValue(big_value).to_string(); + auto json = JsonValue(big_value).to_deprecated_string(); auto value = JsonValue::from_string(json); EXPECT_EQ_FORCE(value.is_error(), false); EXPECT_EQ(value.value().as_u64(), big_value); |