test/test-decimal128-array.rb in red-arrow-17.0.0 vs test/test-decimal128-array.rb in red-arrow-18.0.0
- old
+ new
@@ -36,6 +36,12 @@
BigDecimal("1"),
],
array.to_a)
end
end
+
+ def test_zero
+ array = Arrow::Decimal128Array.new({precision: 38, scale: 9},
+ [BigDecimal("0")])
+ assert_equal(BigDecimal("0"), array[0])
+ end
end