Sha256: ae8fb584edeedbf5eeb8c3b4b35e679efc8b1f1792a20ca8cf5a8372333896be

Contents?: true

Size: 842 Bytes

Versions: 6

Compression:

Stored size: 842 Bytes

Contents

require 'test/unit'

require 'fox12'

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

6 entries across 6 versions & 1 rubygems

Version Path
fxruby-1.2.3 tests/TC_FXRangef.rb
fxruby-1.2.2 tests/TC_FXRangef.rb
fxruby-1.2.4 tests/TC_FXRangef.rb
fxruby-1.2.5 tests/TC_FXRangef.rb
fxruby-1.2.6 tests/TC_FXRangef.rb
fxruby-1.4.0 tests/TC_FXRangef.rb