Sha256: 5a5aafb817b07c655555c19d0e32183f952618fe501747d3a622dfa3ae934b21
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
##################################################################### # tc_nio.rb # # Test case for the Windows::NIO module. ##################################################################### require 'windows/nio' require 'minitest/autorun' class NIOFoo include Windows::NIO end class TC_Windows_NIO < MiniTest::Unit::TestCase def setup @foo = NIOFoo.new end def test_numeric_constants assert_equal(0, NIOFoo::OF_READ) assert_equal(1, NIOFoo::OF_WRITE) assert_equal(2, NIOFoo::OF_READWRITE) end def test_method_constants assert_not_nil(NIOFoo::CancelIo) assert_not_nil(NIOFoo::ReadFileScatter) end def teardown @foo = nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.4 | test/tc_nio.rb |