Sha256: 83c1e6699b2ab906801a54e898a2103e6a89342105986f15cefbe29aae471913

Contents?: true

Size: 783 Bytes

Versions: 14

Compression:

Stored size: 783 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_lower_is_a_vector
    assert_instance_of(FXVec3f, @range.lower)
  end
  
  def test_upper_is_a_vector
    assert_instance_of(FXVec3f, @range.upper)
  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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXRangef.rb
fxruby-1.6.20-x86-linux test/TC_FXRangef.rb
fxruby-1.6.20 test/TC_FXRangef.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXRangef.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXRangef.rb
fxruby-1.6.17-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.17-x86-mswin32-60 tests/TC_FXRangef.rb
fxruby-1.6.17 tests/TC_FXRangef.rb
fxruby-1.6.18-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.18 tests/TC_FXRangef.rb
fxruby-1.6.19-universal-darwin-9 tests/TC_FXRangef.rb
fxruby-1.6.18-x86-mswin32-60 tests/TC_FXRangef.rb
fxruby-1.6.19-x86-mswin32-60 tests/TC_FXRangef.rb
fxruby-1.6.19 tests/TC_FXRangef.rb