File tree 4 files changed +14
-0
lines changed
4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 84
84
85
85
fails "Hash#invert compares new keys with eql? semantics"
86
86
87
+ fails "Hash#initialize_copy does not transfer default values"
88
+ fails "Hash#initialize_copy calls to_hash on hash subclasses"
89
+ fails "Hash#initialize_copy tries to convert the passed argument to a hash using #to_hash"
90
+ fails "Hash#initialize_copy tries to convert the passed argument to a hash using #to_hash"
91
+ fails "Hash#initialize_copy replaces the contents of self with other"
92
+
87
93
fails "Hash#keep_if raises an RuntimeError if called on a frozen instance"
88
94
89
95
fails "Hash#key? compares keys with the same #hash value via #eql?"
Original file line number Diff line number Diff line change 59
59
fails "Array#initialize raises a RuntimeError on frozen arrays"
60
60
61
61
fails "Hash#clear raises a RuntimeError if called on a frozen instance"
62
+ fails "Hash#initialize_copy raises a RuntimeError if called on a frozen instance that would not be modified"
63
+ fails "Hash#initialize_copy raises a RuntimeError if called on a frozen instance that is modified"
64
+ fails "Hash#initialize raises a RuntimeError if called on a frozen instance"
62
65
end
Original file line number Diff line number Diff line change 2
2
fails "Array#initialize is private"
3
3
fails "The defined? keyword when called with a method name having a module as a receiver returns nil if the method is private"
4
4
5
+ fails "Hash#initialize_copy is private"
6
+ fails "Hash#initialize is private"
7
+
5
8
fails "Defining an 'initialize' method sets the method's visibility to private"
6
9
fails "Defining an 'initialize_copy' method sets the method's visibility to private"
7
10
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ core/hash/include_spec
174
174
core/hash/index_spec
175
175
core/hash/indexes_spec
176
176
core/hash/indices_spec
177
+ core/hash/initialize_copy_spec
178
+ core/hash/initialize_spec
177
179
core/hash/invert_spec
178
180
core/hash/keep_if_spec
179
181
core/hash/key_spec
You can’t perform that action at this time.
0 commit comments