Sha256: 3bd0638fa2b6b7ea43e53f88556df09b07ddd231cd6a6b2194cdca4ccccc4e1a

Contents?: true

Size: 684 Bytes

Versions: 104

Compression:

Stored size: 684 Bytes

Contents

require 'test/unit'
require 'fox16'

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


  DELTA = 1.0e-5

  def setup
    @shape = FXGLShape.new(0.0, 0.0, 0.0, 0)
  end
  def test_getPosition
    assert_kind_of(FXVec3f, @shape.position)
  end
  def test_setPosition
    @shape.position = FXVec3f.new(0.1, 0.2, 0.3)
    assert_in_delta(0.1, @shape.position[0], DELTA)
    assert_in_delta(0.2, @shape.position[1], DELTA)
    assert_in_delta(0.3, @shape.position[2], DELTA)

    @shape.position = [0.4, 0.5, 0.6]
    assert_in_delta(0.4, @shape.position[0], DELTA)
    assert_in_delta(0.5, @shape.position[1], DELTA)
    assert_in_delta(0.6, @shape.position[2], DELTA)
  end
end

Version data entries

104 entries across 104 versions & 2 rubygems

Version Path
fxruby-1.6.48 test/TC_FXGLShape.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXGLShape.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.47 test/TC_FXGLShape.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXGLShape.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.46 test/TC_FXGLShape.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXGLShape.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.45 test/TC_FXGLShape.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXGLShape.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.44 test/TC_FXGLShape.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXGLShape.rb
fxruby-1.6.43 test/TC_FXGLShape.rb