Sha256: 5e83bb12c685c08014c1502437dfa016526831398f51d6529fdc4cc61eae0d07
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
require 'test/unit' require 'fox12' require 'testcase' include Fox class TC_FXSettings < TestCase def setup super(self.class.name) end def test_each_section_empty_settings empty = FXSettings.new num_sections = 0 empty.each_section do |sect| num_sections = num_sections + 1 end assert_equal(0, num_sections) end def test_each_section settings = FXSettings.new settings.writeStringEntry('sect1', 'key1', 'value1') settings.writeStringEntry('sect2', 'key2', 'value2') keys = [] settings.each_section do |sect| sect.each_key do |key| keys << key end end assert_equal(['key1', 'key2'], keys.sort) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fxruby-1.2.6 | tests/TC_FXSettings.rb |