| 177 | end |
| 178 | |
| 179 | def test_n_skip_rows |
| 180 | options = Arrow::CSVReadOptions.new |
| 181 | options.n_skip_rows = 1 |
| 182 | table = Arrow::CSVReader.new(open_input(<<-CSV), options) |
| 183 | message1,message2 |
| 184 | "Start1","Start2" |
| 185 | "Shutdown1","Shutdown2" |
| 186 | "Reboot1","Reboot2" |
| 187 | CSV |
| 188 | columns = { |
| 189 | "Start1" => build_string_array(["Shutdown1", "Reboot1"]), |
| 190 | "Start2" => build_string_array(["Shutdown2", "Reboot2"]), |
| 191 | } |
| 192 | assert_equal(build_table(columns), |
| 193 | table.read) |
| 194 | end |
| 195 | |
| 196 | def test_column_names |
| 197 | options = Arrow::CSVReadOptions.new |