Sha256: ca241049c522a624279958fe507661c53ba1fa50da4a533e94756dccd45628f2

Contents?: true

Size: 890 Bytes

Versions: 6

Compression:

Stored size: 890 Bytes

Contents

require 'test/unit'
require 'fox12'

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

6 entries across 6 versions & 1 rubygems

Version Path
fxruby-1.2.2 tests/TC_FXRegistry.rb
fxruby-1.2.3 tests/TC_FXRegistry.rb
fxruby-1.2.4 tests/TC_FXRegistry.rb
fxruby-1.2.5 tests/TC_FXRegistry.rb
fxruby-1.2.6 tests/TC_FXRegistry.rb
fxruby-1.4.0 tests/TC_FXRegistry.rb