Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25b1c64
commit 910189b
Showing
6 changed files
with
16 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
opal_filter "Struct" do | ||
fails "Struct#initialize can be overriden" | ||
fails "Struct.new fails with too many arguments" | ||
fails "Struct.new creates a constant in subclass' namespace" | ||
fails "Struct.new raises a TypeError if object is not a Symbol" | ||
fails "Struct.new raises a TypeError if object doesn't respond to to_sym" | ||
fails "Struct.new fails with invalid constant name as first argument" | ||
fails "Struct.new does not create a constant with symbol as first argument" | ||
fails "Struct.new creates a new anonymous class with nil first argument" | ||
fails "Struct.new calls to_str on its first argument (constant name)" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters