mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
[Bug #20978] Use ruby_bug
instead of ruby_version_is
This commit is contained in:
parent
adad97a031
commit
bf5f8ecef1
Notes:
git
2024-12-23 11:13:09 +00:00
1 changed files with 1 additions and 10 deletions
|
@ -92,16 +92,7 @@ ruby_version_is "3.2" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is "3.2.3"..."3.4" do
|
ruby_bug "#20978", "3.2.3"..."3.4" do
|
||||||
it "can't use invalid keys" do
|
|
||||||
invalid_keys = [Object.new, "Foo", 12]
|
|
||||||
invalid_keys.each do |key|
|
|
||||||
-> { Fiber[key] }.should raise_error(TypeError)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
ruby_version_is "3.4" do
|
|
||||||
it "can use keys as strings" do
|
it "can use keys as strings" do
|
||||||
key = Object.new
|
key = Object.new
|
||||||
def key.to_str; "Foo"; end
|
def key.to_str; "Foo"; end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue