Sha256: b559e9887bba4d13e4b40e2fb5f7aaed3cf4943f972b847c4dc264527c1d8b70

Contents?: true

Size: 1022 Bytes

Versions: 2

Compression:

Stored size: 1022 Bytes

Contents

#####################################################################
# tc_msvcrt_io.rb
#
# Test case for the Windows::MSVCRT::IO module.
#####################################################################
require 'windows/msvcrt/io'
require 'minitest/autorun'

class MIOFoo
   include Windows::MSVCRT::IO
end

class TC_Windows_MSVCRT_IO < MiniTest::Test
   def setup
      @foo = MIOFoo.new
   end

   def test_numeric_constants
      assert_not_nil(MIOFoo::S_IFMT)
   end

   def test_method_constants
      assert_not_nil(MIOFoo::Clearerr)
      assert_not_nil(MIOFoo::Close)
      assert_not_nil(MIOFoo::Fclose)
      assert_not_nil(MIOFoo::Fileno)
   end

   def test_clearerr
      assert_respond_to(@foo, :clearerr)
   end

   def test_close
      assert_respond_to(@foo, :close)
   end

   def test_fclose
      assert_respond_to(@foo, :fclose)
   end

   def test_fileno
      assert_respond_to(@foo, :fileno)
   end

   def teardown
      @foo  = nil
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
windows-pr-1.2.6 test/tc_msvcrt_io.rb
windows-pr-1.2.5 test/tc_msvcrt_io.rb