MCPcopy Create free account
hub / github.com/apache/arrow / test_sequence_boolean

Function test_sequence_boolean

python/pyarrow/tests/test_convert_builtin.py:231–237  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

229
230@parametrize_with_sequence_types
231def test_sequence_boolean(seq):
232 expected = [True, None, False, None]
233 arr = pa.array(seq(expected))
234 assert len(arr) == 4
235 assert arr.null_count == 2
236 assert arr.type == pa.bool_()
237 assert arr.to_pylist() == expected
238
239
240@pytest.mark.numpy

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected