Sha256: b6cb26a1ea4ec2bab682c11b56e5a46010d24bc687476c6ca15644a6568a1a73
Contents?: true
Size: 443 Bytes
Versions: 7
Compression:
Stored size: 443 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'tzinfo' include TZInfo class TCRubyCoreSupport < Test::Unit::TestCase def test_rational_new! assert_equal(Rational(3,4), RubyCoreSupport.rational_new!(3,4)) end def test_datetime_new! assert_equal(DateTime.new(2008,10,6,20,30,0, 1, Date::ITALY), RubyCoreSupport.datetime_new!(Rational(117827777, 48),1,2299161)) end end
Version data entries
7 entries across 7 versions & 1 rubygems