| 18 | class TestFileOutputStream < Test::Unit::TestCase |
| 19 | sub_test_case(".new") do |
| 20 | def test_create |
| 21 | tempfile = Tempfile.open("arrow-io-file-output-stream") |
| 22 | tempfile.write("Hello") |
| 23 | tempfile.close |
| 24 | file = Arrow::FileOutputStream.new(tempfile.path, false) |
| 25 | file.close |
| 26 | assert_equal("", File.read(tempfile.path)) |
| 27 | end |
| 28 | |
| 29 | def test_append |
| 30 | tempfile = Tempfile.open("arrow-io-file-output-stream") |