summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 03:18:39 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 03:18:39 +0000
commite9faf5ffabbb5addd1ac298fe8cdcb0e068ea59d (patch)
tree333de5220b26bd377920b3febc7b98dac9a0563c /test
parent1ff0d08b200abd769978038e84afe656934ef361 (diff)
merges r28643 from trunk into ruby_1_9_2. Fixes #3570.
-- * time.c (localtime_with_gmtoff_zone): renamed from localtime_with_gmtoff and return the timezone abbreviation name. (guess_local_offset): return the isdst and timezone abbreviation name. (localtimew): use the returned isdst and timezone abbreviation name. [ruby-core:31275] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time_tz.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 4e781cd820..5b788dd9bb 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -48,6 +48,11 @@ class TestTimeTZ < Test::Unit::TestCase
with_tz(tz="America/Los_Angeles") {
assert_time_constructor(tz, "2007-03-11 03:00:00 -0700", :local, [2007,3,11,2,0,0])
assert_time_constructor(tz, "2007-03-11 03:59:59 -0700", :local, [2007,3,11,2,59,59])
+ #assert_equal("PST", Time.new(-0x1_0000_0000_0000_0000).zone)
+ assert_equal("PST", Time.new(0x1_0000_0000_0000_0000, 1).zone)
+ assert_equal("PDT", Time.new(0x1_0000_0000_0000_0000, 8).zone)
+ assert_equal(false, Time.new(0x1_0000_0000_0000_0000, 1).isdst)
+ assert_equal(true, Time.new(0x1_0000_0000_0000_0000, 8).isdst)
}
end