HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-2.7.4/test/csv/interface/test_delegation.rb
# 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