Sha256: 0fda2e40ab8a04018a152f8d9b5ef8f8ae73988fe81913ba0ca1f608ff313056

Contents?: true

Size: 842 Bytes

Versions: 24

Compression:

Stored size: 842 Bytes

Contents

require 'test/unit'

require 'fox16'

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

24 entries across 24 versions & 1 rubygems

Version Path
fxruby-1.6.14-mswin32 tests/TC_FXRangef.rb
fxruby-1.6.13-mswin32 tests/TC_FXRangef.rb
fxruby-1.6.0 tests/TC_FXRangef.rb
fxruby-1.6.1 tests/TC_FXRangef.rb
fxruby-1.6.11 tests/TC_FXRangef.rb
fxruby-1.6.10 tests/TC_FXRangef.rb
fxruby-1.6.12 tests/TC_FXRangef.rb
fxruby-1.6.13 tests/TC_FXRangef.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.14 tests/TC_FXRangef.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXRangef.rb
fxruby-1.6.15 tests/TC_FXRangef.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXRangef.rb
fxruby-1.6.16 tests/TC_FXRangef.rb
fxruby-1.6.2 tests/TC_FXRangef.rb
fxruby-1.6.3 tests/TC_FXRangef.rb
fxruby-1.6.4 tests/TC_FXRangef.rb
fxruby-1.6.5 tests/TC_FXRangef.rb