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/spec/ruby/library/win32ole/win32ole/constants_spec.rb
platform_is :windows do
  require_relative '../fixtures/classes'

  describe "WIN32OLE class" do
    it "defines constant CP_ACP" do
      WIN32OLE::CP_ACP.should == 0
    end

    it "defines constant CP_OEMCP" do
      WIN32OLE::CP_OEMCP.should == 1
    end

    it "defines constant CP_MACCP" do
      WIN32OLE::CP_MACCP.should == 2
    end

    it "defines constant CP_THREAD_ACP" do
      WIN32OLE::CP_THREAD_ACP.should == 3
    end

    it "defines constant CP_SYMBOL" do
      WIN32OLE::CP_SYMBOL.should == 42
    end

    it "defines constant CP_UTF7" do
      WIN32OLE::CP_UTF7.should == 65000
    end

    it "defines constant CP_UTF8" do
      WIN32OLE::CP_UTF8.should == 65001
    end

    it "defines constant LOCALE_SYSTEM_DEFAULT" do
      WIN32OLE::LOCALE_SYSTEM_DEFAULT.should == 0x0800
    end

    it "defines constant LOCALE_USER_DEFAULT" do
      WIN32OLE::LOCALE_USER_DEFAULT.should == 0x0400
    end
  end

end