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:1652–1656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1650
1651
1652def test_sequence_decimal_negative():
1653 data = [decimal.Decimal('-1234.234983'), decimal.Decimal('-8.094324')]
1654 for type in [pa.decimal64, pa.decimal128, pa.decimal256]:
1655 arr = pa.array(data, type=type(precision=10, scale=6))
1656 assert arr.to_pylist() == data
1657
1658
1659def 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