summaryrefslogtreecommitdiff
path: root/test/ruby/test_time_tz.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
commit9194b220a59435a5a16d62a3ccc93b5adc784cd1 (patch)
tree654b01c15ba23e9a43ee9cc7bce65d24c54613e2 /test/ruby/test_time_tz.rb
parent01740f0c273c89f7bcff3d5014d73c8ff6fb1986 (diff)
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_time_tz.rb')
-rw-r--r--test/ruby/test_time_tz.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index bb69af87b4..1e8f303274 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -150,7 +150,7 @@ class TestTimeTZ < Test::Unit::TestCase
end
def test_europe_lisbon
- with_tz(tz="Europe/Lisbon") {
+ with_tz("Europe/Lisbon") {
assert_equal("LMT", Time.new(-0x1_0000_0000_0000_0000).zone)
}
end if has_right_tz
@@ -250,7 +250,7 @@ class TestTimeTZ < Test::Unit::TestCase
}
}
group_by(sample) {|tz, _, _, _| tz }.each {|tz, a|
- a.each_with_index {|(_, u, l, gmtoff), i|
+ a.each_with_index {|(_, _, l, gmtoff), i|
expected = "%04d-%02d-%02d %02d:%02d:%02d %s" % (l+[format_gmtoff(gmtoff)])
monotonic_to_past = i == 0 || (a[i-1][2] <=> l) < 0
monotonic_to_future = i == a.length-1 || (l <=> a[i+1][2]) < 0