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