Sha256: cdb9b02c60087b3161062e05120d5a3aa74979132f5c3cca89374420b0072db4

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

Contents

#####################################################################
# tc_limits.rb
#
# Test case for the Windows::Limits module.
#####################################################################
require 'windows/limits'
require 'minitest/autorun'

class LimitsFoo
  include Windows::Limits
end

class TC_Windows_Limits < MiniTest::Test
   def setup
      @foo = LimitsFoo.new
   end

   def test_numeric_constants
      assert_equal(0x80, LimitsFoo::MINCHAR)
      assert_equal(0x7f, LimitsFoo::MAXCHAR)
      assert_equal(0x8000, LimitsFoo::MINSHORT)
      assert_equal(0x7fff, LimitsFoo::MAXSHORT)
      assert_equal(0x80000000, LimitsFoo::MINLONG)
      assert_equal(0x7fffffff, LimitsFoo::MAXLONG)
      assert_equal(0xff, LimitsFoo::MAXBYTE)
      assert_equal(0xffff, LimitsFoo::MAXWORD)
      assert_equal(0xffffffff, LimitsFoo::MAXDWORD)
   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_limits.rb
windows-pr-1.2.5 test/tc_limits.rb