-
Notifications
You must be signed in to change notification settings - Fork 0
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
643aac3
commit 79e3742
Showing
12 changed files
with
176 additions
and
105 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
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 +1,2 @@ | ||
fails:The for expression returns expr | ||
fails:The for expression allows 'break' to have an argument which becomes the value of the for expression |
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,17 @@ | ||
fails:Hash literal {} should return an empty hash | ||
fails:Hash literal {} should return a new hash populated with the given elements | ||
fails:Hash literal freezes string keys on initialization | ||
fails:Hash literal checks duplicated keys on initialization | ||
fails:Hash literal accepts a hanging comma | ||
fails:Hash literal recognizes '=' at the end of the key | ||
fails:Hash literal constructs a new hash with the given elements | ||
fails:Hash literal ignores a hanging comma | ||
fails:Hash literal accepts mixed 'key: value' and 'key => value' syntax | ||
fails:Hash literal accepts mixed 'key: value', 'key => value' and '"key"': value' syntax | ||
fails:Hash literal expands an '**{}' element into the containing Hash literal initialization | ||
fails:Hash literal expands an '**obj' element into the containing Hash literal initialization | ||
fails:Hash literal expands a BasicObject using ** into the containing Hash literal initialization | ||
fails:Hash literal expands an '**{}' element with the last key/value pair taking precedence | ||
fails:Hash literal merges multiple nested '**obj' in Hash literals | ||
fails:Hash literal calls #to_hash to expand an '**obj' element | ||
fails:Hash literal raises a TypeError if any splatted elements keys are not symbols |
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,12 +1,16 @@ | ||
fails:A lambda literal -> () { } returns a lambda | ||
fails:A lambda literal -> () { } assigns variables from parameters for definition '@a = -> (a={}) { a }' | ||
fails:A lambda literal -> () { } assigns variables from parameters for definition '@a = -> (**) { }' | ||
fails:A lambda literal -> () { } assigns variables from parameters for definition '@a = -> (**k) { k }' | ||
fails:A lambda literal -> () { } assigns variables from parameters for definition '@a = -> (*, **k) { k }' | ||
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a, b=1, *c, (*d, (e)), f: 2, g:, h:, **k, &l) do\n [a, b, c, d, e, f, g, h, k, l]\n end" | ||
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> a, b=1, *c, d, e:, f: 2, g:, **k, &l do\n [a, b, c, d, e, f, g, k, l]\n end" | ||
fails:A lambda expression 'lambda { ... }' returns a lambda | ||
fails:A lambda expression 'lambda { ... }' with an implicit block can be created | ||
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n def m(*a) yield(*a) end\n @a = lambda { |a| a }" | ||
fails:A lambda expression 'lambda { ... }' assigns variables from parameters for definition '@a = lambda { |a, | a }' | ||
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n def m(a) yield a end\n def m2() yield end\n @a = lambda { |a, | a }" | ||
fails:A lambda expression 'lambda { ... }' assigns variables from parameters for definition '@a = lambda { |a={}| a }' | ||
fails:A lambda expression 'lambda { ... }' assigns variables from parameters for definition '@a = lambda { |**| }' | ||
fails:A lambda expression 'lambda { ... }' assigns variables from parameters for definition '@a = lambda { |**k| k }' | ||
fails:A lambda expression 'lambda { ... }' assigns variables from parameters for definition '@a = lambda { |*, **k| k }' | ||
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda do |a, b=1, *c, (*d, (e)), f: 2, g:, h:, **k, &l|\n [a, b, c, d, e, f, g, h, k, l]\n end" | ||
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda do |a, b=1, *c, d, e:, f: 2, g:, **k, &l|\n [a, b, c, d, e, f, g, k, l]\n 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
fails:A Proc taking zero arguments raises an ArgumentError if a value is passed | ||
fails:A Proc taking || arguments raises an ArgumentError if a value is passed | ||
fails:A Proc taking |a, *b| arguments does not destructure a single Array value yielded | ||
fails:A Proc taking |a, | arguments raises an ArgumentError when passed more than one value | ||
fails:A Proc taking |a, | arguments does not destructure when passed a single Array |
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
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
Oops, something went wrong.