test/values/test-basic-arrays.rb in red-arrow-2.0.0 vs test/values/test-basic-arrays.rb in red-arrow-3.0.0
- old
+ new
@@ -263,9 +263,20 @@
]
data_type = Arrow::Decimal128DataType.new(8, 2)
target = build(Arrow::Decimal128Array.new(data_type, values))
assert_equal(values, target.values)
end
+
+ def test_decimal256
+ values = [
+ BigDecimal("92.92"),
+ nil,
+ BigDecimal("29.29"),
+ ]
+ data_type = Arrow::Decimal256DataType.new(38, 2)
+ target = build(Arrow::Decimal256Array.new(data_type, values))
+ assert_equal(values, target.values)
+ end
end
class ValuesArrayBasicArraysTest < Test::Unit::TestCase
include ValuesBasicArraysTests