[Bug #20797] Yet another test

This commit is contained in:
Nobuyoshi Nakada 2024-10-15 14:52:17 +09:00
parent 6c7209cd37
commit d58ec11945
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -634,6 +634,12 @@ describe "Time.new with a timezone argument" do
-> { -> {
Time.new("2020-12-25 00:56:17 +23:61") Time.new("2020-12-25 00:56:17 +23:61")
}.should raise_error(ArgumentError, /utc_offset/) }.should raise_error(ArgumentError, /utc_offset/)
ruby_bug '#20797', ''...'3.4' do
-> {
Time.new("2020-12-25 00:56:17 +00:23:61")
}.should raise_error(ArgumentError, /utc_offset/)
end
end end
it "raises ArgumentError if string has not ascii-compatible encoding" do it "raises ArgumentError if string has not ascii-compatible encoding" do