1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Import CSV 3.0.8

This includes performance improvements and backward incompatibility
fixes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2019-04-14 21:01:51 +00:00
parent fb96811d15
commit e3b6c7c7eb
23 changed files with 1534 additions and 650 deletions

View file

@ -0,0 +1,47 @@
# frozen_string_literal: false
require_relative "../helper"
class TestCSVInterfaceDelegation < Test::Unit::TestCase
class TestStringIO < self
def setup
@csv = CSV.new("h1,h2")
end
def test_flock
assert_raise(NotImplementedError) do
@csv.flock(File::LOCK_EX)
end
end
def test_ioctl
assert_raise(NotImplementedError) do
@csv.ioctl(0)
end
end
def test_stat
assert_raise(NotImplementedError) do
@csv.stat
end
end
def test_to_i
assert_raise(NotImplementedError) do
@csv.to_i
end
end
def test_binmode?
assert_equal(false, @csv.binmode?)
end
def test_path
assert_equal(nil, @csv.path)
end
def test_to_io
assert_instance_of(StringIO, @csv.to_io)
end
end
end