Sha256: 79fad9fe91003d587958d820c0c86af96315d9012ba388fb333a54334bc932d8

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

require 'test/unit'
require 'fox16'

class TC_FXGLGroup < Test::Unit::TestCase
  include Fox

  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

4 entries across 4 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 test/TC_FXGLGroup.rb
fxruby-1.6.22.pre2 test/TC_FXGLGroup.rb
fxrubi-1.6.22.pre1-x86-mingw32 test/TC_FXGLGroup.rb
fxrubi-1.6.22.pre1 test/TC_FXGLGroup.rb