Sha256: db99098ffe740c1fa1efcd4f77827a60ecea42b505477383ca0cd26564a3eb82

Contents?: true

Size: 611 Bytes

Versions: 38

Compression:

Stored size: 611 Bytes

Contents

require 'test/unit'
require 'fox16'

include Fox

class TC_FXGLGroup < Test::Unit::TestCase
  def setup
    @group = FXGLGroup.new
  end

  def test_append
    assert_equal(0, @group.size)
    @group.append(FXGLObject.new)
    assert_equal(1, @group.size)
  end

  def test_appendOp
    assert_equal(0, @group.size)
    @group << FXGLObject.new
    assert_equal(1, @group.size)
  end
  
  def test_each_child_yields_to_block
    @group << FXGLObject.new
    @group << FXGLObject.new
    count = 0
    assert_nothing_raised {
      @group.each_child { |c| count += 1 }
    }
    assert_equal(2, count)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXGLGroup.rb
fxruby-1.6.20-x86-linux test/TC_FXGLGroup.rb
fxruby-1.6.20 test/TC_FXGLGroup.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXGLGroup.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXGLGroup.rb
fxruby-1.6.14-mswin32 tests/TC_FXGLGroup.rb
fxruby-1.6.13-mswin32 tests/TC_FXGLGroup.rb
fxruby-1.6.0 tests/TC_FXGLGroup.rb
fxruby-1.6.1 tests/TC_FXGLGroup.rb
fxruby-1.6.11 tests/TC_FXGLGroup.rb
fxruby-1.6.10 tests/TC_FXGLGroup.rb
fxruby-1.6.12 tests/TC_FXGLGroup.rb
fxruby-1.6.13 tests/TC_FXGLGroup.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXGLGroup.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXGLGroup.rb
fxruby-1.6.14 tests/TC_FXGLGroup.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXGLGroup.rb
fxruby-1.6.15 tests/TC_FXGLGroup.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXGLGroup.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXGLGroup.rb