Sha256: 3327f0f4e9a7101a92e4d33942c1e54869a657a67412d5811112c291402122dd

Contents?: true

Size: 890 Bytes

Versions: 38

Compression:

Stored size: 890 Bytes

Contents

require 'test/unit'
require 'fox16'

include Fox

class TC_FXRegistry < Test::Unit::TestCase
  def setup
    @reg = FXRegistry.new("TC_FXRegistry", "FXRuby")
  end

  def test_boolEntries
    assert(@reg.writeBoolEntry("SETTINGS", "trueEntry", true))
    assert(@reg.writeBoolEntry("SETTINGS", "falseEntry", false))

    assert(@reg.readBoolEntry("SETTINGS", "trueEntry"))
    assert(@reg.readBoolEntry("SETTINGS", "trueEntry", true))
    assert(@reg.readBoolEntry("SETTINGS", "trueEntry", false))

    assert(!@reg.readBoolEntry("SETTINGS", "falseEntry"))
    assert(!@reg.readBoolEntry("SETTINGS", "falseEntry", true))
    assert(!@reg.readBoolEntry("SETTINGS", "falseEntry", false))

    assert(!@reg.readBoolEntry("SETTINGS", "missingEntry"))
    assert(!@reg.readBoolEntry("SETTINGS", "missingEntry", false))
    assert( @reg.readBoolEntry("SETTINGS", "missingEntry", true))
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.16 tests/TC_FXRegistry.rb
fxruby-1.6.17-universal-darwin-9 tests/TC_FXRegistry.rb
fxruby-1.6.17-x86-mswin32-60 tests/TC_FXRegistry.rb
fxruby-1.6.17 tests/TC_FXRegistry.rb
fxruby-1.6.18-universal-darwin-9 tests/TC_FXRegistry.rb
fxruby-1.6.19-universal-darwin-9 tests/TC_FXRegistry.rb
fxruby-1.6.18-x86-mswin32-60 tests/TC_FXRegistry.rb
fxruby-1.6.18 tests/TC_FXRegistry.rb
fxruby-1.6.19-x86-mswin32-60 tests/TC_FXRegistry.rb
fxruby-1.6.19 tests/TC_FXRegistry.rb
fxruby-1.6.2 tests/TC_FXRegistry.rb
fxruby-1.6.3 tests/TC_FXRegistry.rb
fxruby-1.6.4 tests/TC_FXRegistry.rb
fxruby-1.6.5 tests/TC_FXRegistry.rb
fxruby-1.6.6 tests/TC_FXRegistry.rb
fxruby-1.6.7 tests/TC_FXRegistry.rb
fxruby-1.6.8 tests/TC_FXRegistry.rb
fxruby-1.6.9 tests/TC_FXRegistry.rb