()
| 121 | |
| 122 | |
| 123 | def test_long_array_format(): |
| 124 | arr = pa.array(range(100)) |
| 125 | result = arr.to_string(window=2) |
| 126 | expected = """\ |
| 127 | [ |
| 128 | 0, |
| 129 | 1, |
| 130 | ... |
| 131 | 98, |
| 132 | 99 |
| 133 | ]""" |
| 134 | assert result == expected |
| 135 | |
| 136 | |
| 137 | def test_indented_string_format(): |