Skip to content

Commit

Permalink
[Truffle] Bunch of specs that already pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Dec 4, 2014
1 parent 70d736f commit 0f281bc
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion spec/truffle/tags/language/block_tags.txt
Expand Up @@ -3,11 +3,11 @@ fails:Post-args with pattern matching extracts matched blocks with post argument
fails:A block yielded a single Array assigns nil to unassigned required arguments
fails:A block yielded a single Array assigns elements to optional arguments
fails:A block yielded a single Array assgins elements to post arguments
fails:A block yielded a single Array assigns elements to required arguments when a keyword rest argument is present
fails:A block yielded a single Array assigns elements to mixed argument types
fails:A block yielded a single Array calls #to_hash on the last element if keyword arguments are present
fails:A block yielded a single Array assigns the last element to a non-keyword argument if #to_hash returns nil
fails:A block yielded a single Array calls #to_hash on the element that maps to the keyword arguments
fails:A block yielded a single Array raises a TypeError if #to_hash does not return a Hash
fails:A block yielded a single Array raises the error raised inside #to_hash
fails:A block yielded a single Object receives the object if #to_ary returns nil
fails:A block yielded a single Array assigns elements to required arguments when a keyword rest argument is present
2 changes: 0 additions & 2 deletions spec/truffle/tags/language/lambda_tags.txt
@@ -1,4 +1,3 @@
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> ((a)) { a }"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> ((*a, b)) { [a, b] }"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a:) { a }"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a: 1) { a }"
Expand All @@ -14,7 +13,6 @@ fails:"A lambda literal -> () { } assigns variables from parameters for definiti
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a: 1, b: 2) { [a, b] }"
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 { ... }' assigns variables from parameters for definition \n @a = lambda { |(a)| a }"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda { |(*a, b)| [a, b] }"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda { |a:| a }"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda { |a: 1| a }"
Expand Down
7 changes: 0 additions & 7 deletions spec/truffle/tags/language/method_tags.txt
Expand Up @@ -22,16 +22,12 @@ fails:An attribute assignment method send with a single splatted Object argument
fails:An attribute assignment method send with a leading splatted Object argument raises a TypeError if #to_a does not return an Array
fails:An attribute assignment method send with a middle splatted Object argument raises a TypeError if #to_a does not return an Array
fails:An attribute assignment method send with a trailing splatted Object argument raises a TypeError if #to_a does not return an Array
fails:"A method assigns local variables from method parameters for definition \n def m((a)) a end"
fails:"A method assigns local variables from method parameters for definition \n def m((*a, b)) [a, b] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a:) a end"
fails:"A method assigns local variables from method parameters for definition \n def m(a: 1) a end"
fails:"A method assigns local variables from method parameters for definition \n def m(**) end"
fails:"A method assigns local variables from method parameters for definition \n def m(**k) k end"
fails:"A method assigns local variables from method parameters for definition \n def m(a, (b, c)) [a, b, c] end"
fails:"A method assigns local variables from method parameters for definition \n def m((a), (b)) [a, b] end"
fails:"A method assigns local variables from method parameters for definition \n def m((*a), (*b)) [a, b] end"
fails:"A method assigns local variables from method parameters for definition \n def m((a, b), (c, d))\n [a, b, c, d]\n end"
fails:"A method assigns local variables from method parameters for definition \n def m((a, *b), (*c, d))\n [a, b, c, d]\n end"
fails:"A method assigns local variables from method parameters for definition \n def m((a, b, *c, d), (*e, f, g), (*h))\n [a, b, c, d, e, f, g, h]\n end"
fails:"A method assigns local variables from method parameters for definition \n def m(a, (b, (c, *d), *e))\n [a, b, c, d, e]\n end"
Expand All @@ -40,12 +36,9 @@ fails:"A method assigns local variables from method parameters for definition \n
fails:"A method assigns local variables from method parameters for definition \n def m(a, b: 1) [a, b] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a, **) a end"
fails:"A method assigns local variables from method parameters for definition \n def m(a, **k) [a, k] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, c)) [a, b, c] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, (c, *d))) [a, b, c, d] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, (c, *d), *e)) [a, b, c, d, e] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b), (c)) [a, b, c] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (*b), (*c)) [a, b, c] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, c), (d, e)) [a, b, c, d, e] end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, *c), (*d, e))\n [a, b, c, d, e]\n end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, (b, *c), (d, (*e, f)))\n [a, b, c, d, e, f]\n end"
fails:"A method assigns local variables from method parameters for definition \n def m(a=1, b:) [a, b] end"
Expand Down
2 changes: 0 additions & 2 deletions spec/truffle/tags/language/predefined_tags.txt
@@ -1,9 +1,7 @@
fails:Predefined global $~ is set at the method-scoped level rather than block-scoped
fails:Predefined global $~ changes the value of derived capture globals when assigned
fails:Predefined global $~ changes the value of the derived preceding match global
fails:Predefined global $~ changes the value of the derived following match global
fails:Predefined global $~ changes the value of the derived full match global
fails:Predefined global $& is equivalent to MatchData#[0] on the last match $~
fails(inherited):Predefined global $& sets the encoding to the encoding of the source String
fails:Predefined global $` is equivalent to MatchData#pre_match on the last match $~
fails(inherited):Predefined global $` sets the encoding to the encoding of the source String
Expand Down
2 changes: 1 addition & 1 deletion spec/truffle/tags/language/variables_tags.txt
Expand Up @@ -55,7 +55,6 @@ fails:Multiple assignment with a single RHS value assigns global variables
fails:Multiple assignment with a single RHS value assigns indexed elements
fails:Multiple assignment with a single splatted RHS value calls #to_a to convert nil to an empty Array
fails:Multiple assignment with a single splatted RHS value returns a copy of a splatted Array
fails:Multiple assignment with a single splatted RHS value does not call #to_a on an Array subclass
fails:Multiple assignment with a single splatted RHS value returns an Array when the splatted object is an Array subclass
fails:Multiple assignment with a single splatted RHS value does not call #to_a if #respond_to? returns false
fails:Multiple assignment with a single splatted RHS value raises a TypeError if #to_a does not return an Array
Expand All @@ -80,3 +79,4 @@ fails:Multiple assignment with a MRHS value does not call #to_ary to convert an
fails:Multiple assignment with a MRHS value does not call #to_ary to convert a splatted Object when the position receiving the value is a simple variable
fails:Multiple assignment with a MRHS value does not mutate the assigned Array
fails:Multiple assignment with a RHS assignment value does not mutate a RHS Array
fails:Multiple assignment with a single splatted RHS value does not call #to_a on an Array subclass

0 comments on commit 0f281bc

Please sign in to comment.