1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-06-27 15:51:37 +02:00
parent 64d8c0815e
commit b3fa158d1c
35 changed files with 652 additions and 56 deletions

View file

@ -50,6 +50,14 @@ describe "C-API Hash function" do
end
end
describe "rb_ident_hash_new" do
it "returns a new compare by identity hash" do
result = @s.rb_ident_hash_new
result.should == {}
result.compare_by_identity?.should == true
end
end
describe "rb_hash_dup" do
it "returns a copy of the hash" do
hsh = {}