| 26 | end |
| 27 | |
| 28 | def test_default |
| 29 | table = Arrow::CSVReader.new(open_input(<<-CSV)) |
| 30 | message,count |
| 31 | "Start",2 |
| 32 | "Shutdown",9 |
| 33 | CSV |
| 34 | columns = { |
| 35 | "message" => build_string_array(["Start", "Shutdown"]), |
| 36 | "count" => build_int64_array([2, 9]), |
| 37 | } |
| 38 | assert_equal(build_table(columns), |
| 39 | table.read) |
| 40 | end |
| 41 | |
| 42 | sub_test_case("options") do |
| 43 | def test_add_column_type |