rok commented on code in PR #13901:
URL: https://github.com/apache/arrow/pull/13901#discussion_r1741226039


##########
cpp/src/arrow/util/utf8_util_test.cc:
##########
@@ -562,5 +564,30 @@ TEST(UTF8Length, Basics) {
   ASSERT_EQ(length("\xf0\x9f\x99\x8c"), 1);
 }
 
+class UTF8ExtensionArrayTest : public ::testing::Test {
+ public:
+  static std::shared_ptr<Array> ExampleJson(
+      const std::shared_ptr<DataType>& storage_type) {
+    std::shared_ptr<Array> arr = ArrayFromJSON(storage_type, R"([
+    "null",
+    "1234",
+    "3.14159",
+    "true",
+    "false",
+    "\"a json string\"",
+    "[\"a\", \"json\", \"array\"]",
+    "{\"obj\": \"a simple json object\"}"
+   ])");
+    return ExtensionType::WrapArray(arrow::extension::json(storage_type), arr);
+  }
+};
+
+TEST_F(UTF8ExtensionArrayTest, JSONExtensionType) {

Review Comment:
   Moved to `json_test.cc`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to