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.48 test/TC_FXRanged.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXRanged.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.47 test/TC_FXRanged.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXRanged.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.46 test/TC_FXRanged.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXRanged.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.45 test/TC_FXRanged.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXRanged.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.44 test/TC_FXRanged.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXRanged.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXRanged.rb
fxruby-1.6.43 test/TC_FXRanged.rb