   import ExUnit.CaptureIO
 
   test :read_with_count do
-    { :ok, file } = File.open(Path.expand('fixtures/file.txt', __DIR__), [:charlist])
+    { :ok, file } = File.open(Path.expand('fixtures/file.txt', __DIR__), [:char_list])
     assert 'FOO' == IO.read(file, 3)
     assert File.close(file) == :ok
   end

  end

  test :getn_with_count do
    { :ok, file } = File.open(Path.expand('fixtures/file.txt', __DIR__), [:charlist])
    assert 'FOO' == IO.getn(file, "", 3)
    assert File.close(file) == :ok
  end

  end

  test :gets do
    { :ok, file } = File.open(Path.expand('fixtures/file.txt', __DIR__), [:char_list])
    assert 'FOO\n' == IO.gets(file, "")
    assert :eof == IO.gets(file, "")
    assert File.close(file) == :ok
