Skip to content
Permalink
Browse files
[Truffle] Bunch of specs that already pass.
  • Loading branch information
chrisseaton committed Dec 4, 2014
1 parent 70d736f commit 0f281bc082d96acd503cfe4e92405f6529e19d39
@@ -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
@@ -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 }"
@@ -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 }"
@@ -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"
@@ -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"
@@ -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
@@ -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
@@ -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.