You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/10 11:17:01 UTC

[GitHub] [arrow] amol- commented on a change in pull request #11873: ARROW-14242: Exposing the correct `indent` paramenter in `to_string`

amol- commented on a change in pull request #11873:
URL: https://github.com/apache/arrow/pull/11873#discussion_r766598429



##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -108,6 +108,22 @@ def test_long_array_format():
     assert result == expected
 
 
+def test_indented_string_format():
+    arr = pa.array(['', None, 'foo'])
+    result = arr.to_string(indent=1)
+    expected = '[\n "",\n null,\n "foo"\n]'

Review comment:
       I suggest we use multinline strings for the expectation, it's a bit easer to read for people getting to this test




-- 
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-unsubscribe@arrow.apache.org

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