| 44 | end |
| 45 | |
| 46 | def test_sliced |
| 47 | values = [-Float::INFINITY, -0.0, nil, +0.0, +Float::INFINITY] |
| 48 | array1 = ArrowFormat::Float32Array.new(values) |
| 49 | array2 = ArrowFormat::Float32Array.new([0.0, *values, 0.0]) |
| 50 | assert_equal(array1, array2.slice(1, 5)) |
| 51 | end |
| 52 | |
| 53 | def test_sliced_different_content |
| 54 | values = [-Float::INFINITY, -0.0, nil, +0.0, +Float::INFINITY] |