Sha256: a346e441fa8bbd876af4b15fccba190007ffc40ff1970f4b62aa025ede6d370d

Contents?: true

Size: 779 Bytes

Versions: 100

Compression:

Stored size: 779 Bytes

Contents

require 'test/unit'

require 'fox16'

class TC_FXRanged < Test::Unit::TestCase
  include Fox


  WIDTH, HEIGHT, DEPTH = 2, 4, 6

  def setup
    @range = FXRanged.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
  end

  def test_lower_is_a_vector
    assert_instance_of(FXVec3d, @range.lower)
  end

  def test_upper_is_a_vector
    assert_instance_of(FXVec3d, @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

100 entries across 100 versions & 1 rubygems

Version Path
fxruby-1.6.26-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.26 test/TC_FXRanged.rb
fxruby-1.6.26.pre1-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.26.pre1 test/TC_FXRanged.rb
fxruby-1.6.25-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.25 test/TC_FXRanged.rb
fxruby-1.6.25.pre2-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.25.pre2 test/TC_FXRanged.rb
fxruby-1.6.25.pre1-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.25.pre1 test/TC_FXRanged.rb
fxruby-1.6.24-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.24 test/TC_FXRanged.rb
fxruby-1.6.23-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.23 test/TC_FXRanged.rb
fxruby-1.6.22-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.22 test/TC_FXRanged.rb
fxruby-1.6.22.pre4-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.22.pre4 test/TC_FXRanged.rb
fxruby-1.6.22.pre3-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.22.pre3 test/TC_FXRanged.rb