[前][次][番号順一覧][スレッド一覧]

ruby-changes:51767

From: naruse <ko1@a...>
Date: Mon, 16 Jul 2018 23:43:45 +0900 (JST)
Subject: [ruby-changes:51767] naruse:r63979 (trunk): No one knows how many leap seconds in year 2100

naruse	2018-07-16 23:43:38 +0900 (Mon, 16 Jul 2018)

  New Revision: 63979

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63979

  Log:
    No one knows how many leap seconds in year 2100
    
    Just check whether leep seconds are considered or not.

  Modified files:
    trunk/test/ruby/test_time_tz.rb
Index: test/ruby/test_time_tz.rb
===================================================================
--- test/ruby/test_time_tz.rb	(revision 63978)
+++ test/ruby/test_time_tz.rb	(revision 63979)
@@ -233,13 +233,13 @@ class TestTimeTZ < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L233
     }
     with_tz("right/UTC") {
       ::Bug::Time.reset_leap_second_info
-      assert_equal(4102444827, Time.utc(2100,1,1,0,0,0).to_i)
+      assert_not_equal(4102444800, Time.utc(2100,1,1,0,0,0).to_i)
       with_tz(tz="UTC") {
         assert_time_constructor(tz, "2008-12-31 23:59:59 UTC", :utc, [2008,12,31,23,59,59])
         assert_time_constructor(tz, "2009-01-01 00:00:00 UTC", :utc, [2008,12,31,23,59,60])
         assert_time_constructor(tz, "2009-01-01 00:00:00 UTC", :utc, [2008,12,31,24,0,0])
         assert_time_constructor(tz, "2009-01-01 00:00:00 UTC", :utc, [2009,1,1,0,0,0])
-        assert_equal(4102444827, Time.utc(2100,1,1,0,0,0).to_i)
+        assert_not_equal(4102444800, Time.utc(2100,1,1,0,0,0).to_i)
       }
     }
   end if has_right_tz

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]