diff options
Diffstat (limited to 'lldb/unittests/Utility/JSONTest.cpp')
-rw-r--r-- | lldb/unittests/Utility/JSONTest.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lldb/unittests/Utility/JSONTest.cpp b/lldb/unittests/Utility/JSONTest.cpp deleted file mode 100644 index 0c23350517c..00000000000 --- a/lldb/unittests/Utility/JSONTest.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "gtest/gtest.h" - -#include "lldb/Utility/JSON.h" -#include "lldb/Utility/StreamString.h" - -using namespace lldb_private; - -TEST(JSONTest, Dictionary) { - JSONObject o; - o.SetObject("key", std::make_shared<JSONString>("value")); - - StreamString stream; - o.Write(stream); - - ASSERT_EQ(stream.GetString(), R"({"key":"value"})"); -} - -TEST(JSONTest, Newlines) { - JSONObject o; - o.SetObject("key", std::make_shared<JSONString>("hello\nworld")); - - StreamString stream; - o.Write(stream); - - ASSERT_EQ(stream.GetString(), R"({"key":"hello\nworld"})"); -} |