Sha256: 6b072d3750468729ad106f626062ce7f0b69cefbfec341f41d480163887a3a07

Contents?: true

Size: 718 Bytes

Versions: 100

Compression:

Stored size: 718 Bytes

Contents

require 'test/unit'
require 'testcase'
require 'fox16'

class TC_FXFoldingList < Fox::TestCase
  include Fox


  def setup
    super(self.class.name)
    @foldingList = FXFoldingList.new(mainWindow)
  end

  def test_each_for_empty_list
    count = 0
    @foldingList.each { |item| count += 1 }
    assert_equal(0, count, "count for empty list should be zero")
  end

  def test_each
    @foldingList.appendItem(nil, "1")
    @foldingList.appendItem(nil, "2")
    @foldingList.appendItem(nil, "3")
    @foldingList.appendItem(nil, "4")
    @foldingList.appendItem(nil, "5")
    count = 0
    @foldingList.each { |item| count += 1 }
    assert_equal(5, count, "count didn't match expected number of items")
  end

end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
fxruby-1.6.48 test/TC_FXFoldingList.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXFoldingList.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.47 test/TC_FXFoldingList.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXFoldingList.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.46 test/TC_FXFoldingList.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXFoldingList.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.45 test/TC_FXFoldingList.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXFoldingList.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.44 test/TC_FXFoldingList.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXFoldingList.rb
fxruby-1.6.43 test/TC_FXFoldingList.rb