diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-13 18:25:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-13 18:37:36 +0900 |
commit | e9b93d67baf8a6add548b7e5c702665100e4b3c9 (patch) | |
tree | d68a42829a04c1e19aadb7b65c7bebf7afaed598 /test/ruby/test_time_tz.rb | |
parent | 4b15caee8fe7a5aaa52ed5a3ab2a3517c9206fd7 (diff) | |
download | ruby-e9b93d67baf8a6add548b7e5c702665100e4b3c9.tar.gz |
Positional and keyword arguments for timezone are exclusive
[Feature #17485]
Diffstat (limited to 'test/ruby/test_time_tz.rb')
-rw-r--r-- | test/ruby/test_time_tz.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index 7c89b35c9a..37838908b9 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -607,6 +607,7 @@ module TestTimeTZ::WithTZ assert_equal(6, t.wday) assert_equal(244, t.yday) assert_equal(t, time_class.new(2018, 9, 1, 12, in: tzarg)) + assert_raise(ArgumentError) {time_class.new(2018, 9, 1, 12, 0, 0, tzarg, in: tzarg)} end def subtest_now(time_class, tz, tzarg, tzname, abbr, utc_offset) |