Sha256: 54a4c8377a5e409a063570f76a4e4dad96a2a6c63c7581d00dea0487f1808ead

Contents?: true

Size: 842 Bytes

Versions: 7

Compression:

Stored size: 842 Bytes

Contents

require 'test/unit'

require 'fox14'

include Fox

class TC_FXRangef < Test::Unit::TestCase

  WIDTH, HEIGHT, DEPTH = 2, 4, 6

  def setup
    @range = FXRangef.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
  end
  
  def test_width
    assert_equal(@range.width, WIDTH)
  end
  def test_height
    assert_equal(@range.height, HEIGHT)
  end
  def test_depth
    assert_equal(@range.depth, DEPTH)
  end
  def test_longest
    assert_equal([@range.width, @range.height, @range.depth].max, @range.longest)
  end
  def test_shortest
    assert_equal([@range.width, @range.height, @range.depth].min, @range.shortest)
  end
  def test_empty?
  end
  def test_overlaps?
  end
  def test_contains?
  end
  def test_include
  end
  def test_clipTo
  end
  def test_corners
  end
  def test_intersects?
  end
  def test_center
  end
  def test_diagonal
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fxruby-1.4.1 tests/TC_FXRangef.rb
fxruby-1.4.2 tests/TC_FXRangef.rb
fxruby-1.4.3 tests/TC_FXRangef.rb
fxruby-1.4.4 tests/TC_FXRangef.rb
fxruby-1.4.5 tests/TC_FXRangef.rb
fxruby-1.4.6 tests/TC_FXRangef.rb
fxruby-1.4.7 tests/TC_FXRangef.rb