summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-16 19:36:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-16 20:34:23 +0900
commit296a2cab07ce530809ee74dee61180fbb3ca6f91 (patch)
tree4404f56f04e82c8ef31f39f25ad35e377b4864ba /test/ruby
parent5b7439bb7b1088ef5233175893229970cee339fd (diff)
Parse "-00:00" as UTC for the round-trip [Feature #17544]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4075
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_time_tz.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 37838908b9..fdc9e114b5 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -261,6 +261,8 @@ class TestTimeTZ < Test::Unit::TestCase
assert_predicate(Time.new(2019, 1, 1, 0, 0, 0, "UTC"), :utc?)
assert_predicate(Time.new(2019, 1, 1, 0, 0, 0, "utc"), :utc?)
assert_predicate(Time.new(2019, 1, 1, 0, 0, 0, "Z"), :utc?)
+ assert_predicate(Time.new(2019, 1, 1, 0, 0, 0, "-00:00"), :utc?)
+ assert_not_predicate(Time.new(2019, 1, 1, 0, 0, 0, "+00:00"), :utc?)
end
def test_military_names