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

Function test_sequence_decimal_negative

python/pyarrow/tests/test_convert_builtin.py:1675–1679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1673
1674
1675def test_sequence_decimal_negative():
1676 data = [decimal.Decimal('-1234.234983'), decimal.Decimal('-8.094324')]
1677 for type in [pa.decimal64, pa.decimal128, pa.decimal256]:
1678 arr = pa.array(data, type=type(precision=10, scale=6))
1679 assert arr.to_pylist() == data
1680
1681
1682def test_sequence_decimal_no_whole_part():

Callers

nothing calls this directly

Calls 3

typeEnum · 0.50
DecimalMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected