-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Untag passing specs in ruby/language
- Loading branch information
1 parent
238e24e
commit bdef4cf
Showing
16 changed files
with
1 addition
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
fails:Assignments using += using compounded constants causes side-effects of the module part to be applied only once (when assigns) | ||
fails:Assignments using += using an accessor ignores method visibility when receiver is self | ||
fails:Assignments using += using a #[] ignores method visibility when receiver is self | ||
fails:Assignments using += using a #[] splatted argument calls #to_a only once |
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
fails:An instance method raises FrozenError with the correct class name | ||
fails:A singleton method definition raises FrozenError with the correct class name | ||
fails:An instance method with a default argument raises a SyntaxError when there is an existing method with the same name as the local variable |
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 |
---|---|---|
@@ -1,14 +1,4 @@ | ||
fails:The defined? keyword for a scoped constant returns nil when a constant is defined on top-level but not on the class | ||
fails:The defined? keyword for a scoped constant returns nil when an undefined constant is scoped to a defined constant | ||
fails:The defined? keyword for a top-level scoped constant returns nil when an undefined constant is scoped to a defined constant | ||
fails:The defined? keyword for a self-send method call scoped constant returns nil if the last constant is not defined in the scope chain | ||
fails:The defined? keyword for a receiver method call scoped constant returns nil if the last constant is not defined in the scope chain | ||
fails:The defined? keyword for a module method call scoped constant returns nil if the last constant in the scope chain is not defined | ||
fails:The defined? keyword for a variable scoped constant returns nil if the instance scoped constant is not defined | ||
fails:The defined? keyword for a variable scoped constant returns nil if the global scoped constant is not defined | ||
fails:The defined? keyword for a variable scoped constant returns nil if the class scoped constant is not defined | ||
fails:The defined? keyword for a variable scoped constant returns nil if the local scoped constant is not defined | ||
fails:The defined? keyword when called with a method name in a void context warns about the void context when parsing it | ||
fails:The defined? keyword for an expression returns 'expression' for an assigning a fully qualified constant with '+=' | ||
fails:The defined? keyword for an expression &&= returns 'expression' for assigning a fully qualified constant with '&&=' | ||
fails:The defined? keyword for an expression ||= returns 'expression' for assigning a fully qualified constant with '||=' |
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
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 |
---|---|---|
@@ -1,9 +1 @@ | ||
fails:An endless method definition without arguments for definition 'def m() = 42' | ||
fails:An endless method definition with arguments for definition 'def m(a, b) = a + b' | ||
fails:"An endless method definition with multiline body for definition \n def m(n) =\n if n > 2\n m(n - 2) + m(n - 1)\n else\n 1\n end" | ||
fails:"An endless method definition with args forwarding for definition \n def mm(word, num:)\n word * num\n end\n def m(...) = mm(...) + mm(...)" | ||
fails:kwarg with omitted value in a method call accepts short notation 'kwarg' in method call for definition 'def call(*args, **kwargs) = [args, kwargs]' | ||
fails:"kwarg with omitted value in a method call with methods and local variables for definition \n def call(*args, **kwargs) = [args, kwargs]\n def bar\n "baz"\n end\n def foo(val)\n call bar:, val:\n end" | ||
fails:An endless method definition without arguments without parenthesis for definition 'def m = 42' | ||
fails:Inside 'endless' method definitions allows method calls without parenthesis | ||
fails:A method assigns local variables from method parameters for definition 'def m(a, **nil); a end;' |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
fails:Optional constant assignment with &&= causes side-effects of the module part to be applied only once (when assigns) | ||
fails:Optional variable assignments using ||= using a #[] ignores method visibility when receiver is self | ||
fails:Optional variable assignments using &&= using a #[] ignores method visibility when receiver is self | ||
fails:Optional variable assignments using ||= using a #[] splatted argument calls #to_a only once | ||
fails:Optional variable assignments using &&= using a #[] splatted argument calls #to_a only once |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
fails(https://github.com/ruby/prism/issues/2115):Literal Regexps matches against $_ (last input) in a conditional if no explicit matchee provided | ||
fails(https://github.com/ruby/prism/issues/2116):Literal Regexps throws SyntaxError for malformed literals |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
slow:A Symbol literal inherits the encoding of the magic comment and can have a binary encoding | ||
fails(cannot parse a Symbol with binary encoding and non-ASCII characters):A Symbol literal inherits the encoding of the magic comment and can have a binary encoding | ||
fails(https://github.com/ruby/prism/issues/2129):A Symbol literal raises an EncodingError at parse time when Symbol with invalid bytes |