summaryrefslogtreecommitdiff
path: root/unittests/Utility/JSONTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
commit88c643b6fec27eec436c8d138fee6346e92337d6 (patch)
tree82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /unittests/Utility/JSONTest.cpp
parent94994d372d014ce4c8758b9605d63fae651bd8aa (diff)
Notes
Diffstat (limited to 'unittests/Utility/JSONTest.cpp')
-rw-r--r--unittests/Utility/JSONTest.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/unittests/Utility/JSONTest.cpp b/unittests/Utility/JSONTest.cpp
deleted file mode 100644
index 0c23350517ce..000000000000
--- a/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"})");
-}