test/test_casts.rb in tracksperanto-3.5.9 vs test/test_casts.rb in tracksperanto-4.0.0
- old
+ new
@@ -1,6 +1,5 @@
-# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__)) + '/helper'
class TestCasts < Test::Unit::TestCase
D = 0.0001
@@ -54,14 +53,14 @@
t = Testable.new
assert_equal 0, t.int_attr, "Uninitialized int attr should be an int"
t.int_attr = "3.1"
- assert_kind_of Fixnum, t.int_attr
+ assert_kind_of Integer, t.int_attr
assert_equal 3, t.int_attr
t.float_attr = 3.1
- assert_kind_of Fixnum, t.int_attr
+ assert_kind_of Integer, t.int_attr
assert_equal 3, t.int_attr
end
def test_cast_to_string
t = Testable.new