|
2 | 2 | fails "Struct#[] fails when it does not know about the requested attribute" |
3 | 3 | fails "Struct#[] fails if not passed a string, symbol, or integer" |
4 | 4 |
|
| 5 | + fails "Struct#[]= fails when trying to assign attributes which don't exist" |
| 6 | + |
| 7 | + fails "Struct#== returns true if the other has all the same fields" |
| 8 | + fails "Struct#== handles recursive structures by returning false if a difference can be found " |
| 9 | + |
| 10 | + fails "Struct#eql? returns false if any corresponding elements are not #eql?" |
| 11 | + fails "Struct#eql? handles recursive structures by returning false if a difference can be found " |
| 12 | + |
| 13 | + fails "Struct#hash returns the same fixnum for structs with the same content" |
| 14 | + fails "Struct#hash returns the same value if structs are #eql?" |
| 15 | + fails "Struct#hash returns the same hash for recursive structs" |
| 16 | + |
| 17 | + fails "Struct#to_h returns a Hash with members as keys" |
| 18 | + fails "Struct#to_h returns a Hash that is independent from the struct" |
| 19 | + |
5 | 20 | fails "Struct#initialize can be overriden" |
6 | 21 |
|
| 22 | + fails "Struct#inspect returns a string representation of some kind" |
| 23 | + |
| 24 | + fails "Struct#instance_variables returns an array with one name if an instance variable is added" |
| 25 | + fails "Struct#instance_variables returns an empty array if only attributes are defined" |
| 26 | + |
7 | 27 | fails "Struct.new fails with too many arguments" |
8 | 28 | fails "Struct.new creates a constant in subclass' namespace" |
9 | 29 | fails "Struct.new raises a TypeError if object is not a Symbol" |
|
12 | 32 | fails "Struct.new does not create a constant with symbol as first argument" |
13 | 33 | fails "Struct.new creates a new anonymous class with nil first argument" |
14 | 34 | fails "Struct.new calls to_str on its first argument (constant name)" |
| 35 | + |
| 36 | + fails "Struct#values_at fails when passed unsupported types" |
| 37 | + fails "Struct#values_at returns an array of values" |
| 38 | + |
| 39 | + fails "Struct anonymous class instance methods Enumerable methods should work" |
15 | 40 | end |
0 commit comments