view graal/com.oracle.truffle.ruby.test/specs/tags/language/block_tags.txt @ 13514:0fbee3eb71f0

Ruby: import project.
author Chris Seaton <chris.seaton@oracle.com>
date Mon, 06 Jan 2014 17:12:09 +0000
parents
children
line wrap: on
line source

fails:A block allows to define a block variable with the same name as the enclosing block
fails:A block taking |a| arguments assigns nil to the argument when no values are yielded
fails:A block taking |a| arguments does not call #to_ary to convert a single yielded object to an Array
fails:A block taking |a| arguments assigns the first value yielded to the argument
fails:A block taking |a, b| arguments assgins nil to the arguments when no values are yielded
fails:A block taking |a, b| arguments assigns one value yielded to the first argument
fails:A block taking |a, b| arguments destructures a splatted Array
fails:A block taking |a, b| arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |a, b| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |a, b| arguments does not call #to_ary if the object does not respond to #to_ary
fails:A block taking |a, b| arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking |a, *b| arguments assigns 'nil' and '[]' to the arguments when no values are yielded
fails:A block taking |a, *b| arguments assigns all yielded values after the first to the rest argument
fails:A block taking |a, *b| arguments assigns 'nil' and '[]' to the arguments when a single, empty Array is yielded
fails:A block taking |a, *b| arguments assigns the element of a single element Array to the first argument
fails:A block taking |a, *b| arguments destructures a splatted Array
fails:A block taking |a, *b| arguments destructures a single Array value assigning the remaining values to the rest argument
fails:A block taking |a, *b| arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |a, *b| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |a, *b| arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking |*| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |*| arguments does not call #to_ary to convert a single yielded object to an Array
fails:A block taking |*a| arguments assigns all the values passed to the argument as an Array
fails:A block taking |*a| arguments assigns '[[]]' to the argument when passed an empty Array
fails:A block taking |*a| arguments assigns a single Array value passed to the argument by wrapping it in an Array
fails:A block taking |*a| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |*a| arguments does not call #to_ary to convert a single yielded object to an Array
fails:A block taking |a, | arguments assigns nil to the argument when no values are yielded
fails:A block taking |a, | arguments assigns the argument the first value yielded
fails:A block taking |a, | arguments assigns the argument the first of several values yielded when it is an Array
fails:A block taking |a, | arguments assigns nil to the argument when passed an empty Array
fails:A block taking |a, | arguments assigns the argument the first element of the Array when passed a single Array
fails:A block taking |a, | arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |a, | arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |a, | arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking |(a, b)| arguments assigns nil to the arguments when yielded no values
fails:A block taking |(a, b)| arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |(a, b)| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |(a, b)| arguments does not call #to_ary if the object does not respond to #to_ary
fails:A block taking |(a, b)| arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking |(a, b), c| arguments assigns nil to the arguments when yielded no values
fails:A block taking |(a, b), c| arguments destructures a single one-level Array value yielded
fails:A block taking |(a, b), c| arguments destructures a single multi-level Array value yielded
fails:A block taking |(a, b), c| arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |(a, b), c| arguments does not call #to_ary if the single yielded object is an Array
fails:A block taking |(a, b), c| arguments does not call #to_ary if the object does not respond to #to_ary
fails:A block taking |(a, b), c| arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking nested |a, (b, (c, d))| destructures a single multi-level Array value yielded
fails:A block taking nested |a, (b, (c, d))| destructures a single multi-level Array value yielded
fails:A block taking nested |a, ((b, c), d)| destructures a single multi-level Array value yielded
fails:A block taking nested |a, ((b, c), d)| destructures a single multi-level Array value yielded
fails:A block arguments with _ extracts arguments with _
fails:Block-local variables override shadowed variables from the outer scope
fails:Post-args appear after a splat
fails:Post-args are required
fails:Post-args with required args gathers remaining args in the splat
fails:Post-args with required args has an empty splat when there are no remaining args
fails:Post-args with optional args gathers remaining args in the splat
fails:Post-args with optional args overrides the optional arg before gathering in the splat
fails:Post-args with optional args uses the required arg before the optional and the splat
fails:Post-args with optional args overrides the optional args from left to right before gathering the splat
fails:A block taking |(a, b)| arguments destructures a single Array value yielded
fails:A block taking |(a, b)| arguments destructures a single Array value yielded when shadowing an outer variable
fails:A block taking nested |a, (b, (c, d))| assigns nil to the arguments when yielded no values
fails:A block taking nested |a, (b, (c, d))| destructures separate yielded values
fails:A block taking nested |a, ((b, c), d)| assigns nil to the arguments when yielded no values
fails:A block taking nested |a, ((b, c), d)| destructures separate yielded values