| 21 | |
| 22 | sub_test_case("mode") do |
| 23 | def test_default |
| 24 | assert_equal(2, build_int32_array([1, nil, 3]).count) |
| 25 | |
| 26 | options = Arrow::CountOptions.new |
| 27 | options.mode = Arrow::CountMode::ONLY_VALID |
| 28 | assert_equal(2, build_int32_array([1, nil, 3]).count(options)) |
| 29 | end |
| 30 | |
| 31 | def test_nulls |
| 32 | options = Arrow::CountOptions.new |