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.43-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.43-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.42 test/TC_FXRanged.rb
fxruby-1.6.42-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.42-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.41 test/TC_FXRanged.rb
fxruby-1.6.41-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.41-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.40-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.40-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.40 test/TC_FXRanged.rb
fxruby-1.6.39 test/TC_FXRanged.rb
fxruby-1.6.39-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.39-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.38 test/TC_FXRanged.rb
fxruby-1.6.38-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.38-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.38.pre1 test/TC_FXRanged.rb
fxruby-1.6.37 test/TC_FXRanged.rb
fxruby-1.6.37-x64-mingw32 test/TC_FXRanged.rb