Sha256: a48c943e2849414935e31f9c46d0d1a46f6c1388f6f1ae6b2014a2a21d752b8f

Contents?: true

Size: 445 Bytes

Versions: 38

Compression:

Stored size: 445 Bytes

Contents

require 'test/unit'
require 'fox16'

include Fox

class TC_FXSegment < Test::Unit::TestCase
  def test_new
    aSeg = FXSegment.new
    assert_equal(0, aSeg.x1)
    assert_equal(0, aSeg.y1)
    assert_equal(0, aSeg.x2)
    assert_equal(0, aSeg.y2)
  end
  def test_new_with_values
    aSeg = FXSegment.new(1, 2, 3, 4)
    assert_equal(1, aSeg.x1)
    assert_equal(2, aSeg.y1)
    assert_equal(3, aSeg.x2)
    assert_equal(4, aSeg.y2)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.17-universal-darwin-9 tests/TC_FXSegment.rb
fxruby-1.6.16 tests/TC_FXSegment.rb
fxruby-1.6.17-x86-mswin32-60 tests/TC_FXSegment.rb
fxruby-1.6.17 tests/TC_FXSegment.rb
fxruby-1.6.18-universal-darwin-9 tests/TC_FXSegment.rb
fxruby-1.6.18 tests/TC_FXSegment.rb
fxruby-1.6.18-x86-mswin32-60 tests/TC_FXSegment.rb
fxruby-1.6.19-universal-darwin-9 tests/TC_FXSegment.rb
fxruby-1.6.19-x86-mswin32-60 tests/TC_FXSegment.rb
fxruby-1.6.19 tests/TC_FXSegment.rb
fxruby-1.6.2 tests/TC_FXSegment.rb
fxruby-1.6.3 tests/TC_FXSegment.rb
fxruby-1.6.4 tests/TC_FXSegment.rb
fxruby-1.6.5 tests/TC_FXSegment.rb
fxruby-1.6.6 tests/TC_FXSegment.rb
fxruby-1.6.8 tests/TC_FXSegment.rb
fxruby-1.6.7 tests/TC_FXSegment.rb
fxruby-1.6.9 tests/TC_FXSegment.rb