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