Sha256: 7678091802e52becfcc96f264e1708637fb7a80b4088b2cc7e20004093ed5467

Contents?: true

Size: 654 Bytes

Versions: 104

Compression:

Stored size: 654 Bytes

Contents

require 'test/unit'
require 'fox16'

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

  def setup
    @nilTarget    = FXDataTarget.new
    @intTarget    = FXDataTarget.new(42)
    @floatTarget  = FXDataTarget.new(3.14159)
    @stringTarget = FXDataTarget.new("foo")
    @trueTarget   = FXDataTarget.new(true)
    @falseTarget  = FXDataTarget.new(false)
  end
  def test_to_s
    assert_equal("", @nilTarget.to_s)
    assert_equal("42", @intTarget.to_s)
    assert_equal("3.14159", @floatTarget.to_s)
    assert_equal("foo", @stringTarget.to_s)
    assert_equal("true", @trueTarget.to_s)
    assert_equal("false", @falseTarget.to_s)
  end
end

Version data entries

104 entries across 104 versions & 2 rubygems

Version Path
fxruby-1.6.37-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.37.rc1 test/TC_FXDataTarget.rb
fxruby-1.6.37.rc1-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.37.rc1-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.36 test/TC_FXDataTarget.rb
fxruby-1.6.36-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.36-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.35-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.35-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.35 test/TC_FXDataTarget.rb
fxruby-1.6.34-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.34-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.34 test/TC_FXDataTarget.rb
fxruby-1.6.33-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.33-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.33 test/TC_FXDataTarget.rb
fxruby-1.6.32-x86-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.32-x64-mingw32 test/TC_FXDataTarget.rb
fxruby-1.6.32 test/TC_FXDataTarget.rb
fxruby-1.6.32.pre2-x64-mingw32 test/TC_FXDataTarget.rb