Sha256: 80ae8f641d50d336aa3c3a501b248610ba85db9fab1fd78340f1c4ee3db5bd4f

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'test/unit'
require 'tzinfo/ruby_core_support'

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

10 entries across 10 versions & 1 rubygems

Version Path
tzinfo-0.3.20 test/tc_ruby_core_support.rb
tzinfo-0.3.19 test/tc_ruby_core_support.rb
tzinfo-0.3.18 test/tc_ruby_core_support.rb
tzinfo-0.3.17 test/tc_ruby_core_support.rb
tzinfo-0.3.16 test/tc_ruby_core_support.rb
tzinfo-0.3.15 test/tc_ruby_core_support.rb
tzinfo-0.3.14 test/tc_ruby_core_support.rb
tzinfo-0.3.11 test/tc_ruby_core_support.rb
tzinfo-0.3.13 test/tc_ruby_core_support.rb
tzinfo-0.3.12 test/tc_ruby_core_support.rb