Skip to content
Permalink
Browse files
[Truffle] Some more language specs passing.
  • Loading branch information
chrisseaton committed Dec 18, 2014
1 parent 3a11773 commit ddee507b9d1f6416b68bfc91ed9b66e192651d86
@@ -1,6 +1,2 @@
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 calls #to_hash to convert an '**obj' element
fails:Hash literal raises a TypeError if #to_hash does not return a Hash
fails:Hash literal merges the containing Hash into the **obj before importing obj's items
fails:Hash literal merges multiple nested '**obj' in Hash literals
@@ -1,6 +1,5 @@
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 = -> (**) { }"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> ((a, b, *c, d), (*e, f, g), (*h)) do\n [a, b, c, d, e, f, g, h]\n end"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a, (b, (c, *d, (e, (*f)), g), (h, (i, j)))) do\n [a, b, c, d, e, f, g, h, i, j]\n end"
fails:"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (*, **k) { k }"
@@ -12,7 +11,6 @@ fails:"A lambda literal -> () { } assigns variables from parameters for definiti
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, 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 { |**| }"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda do |(a, b, *c, d), (*e, f, g), (*h)|\n [a, b, c, d, e, f, g, h]\n end"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda do |a, (b, (c, *d, (e, (*f)), g), (h, (i, j)))|\n [a, b, c, d, e, f, g, h, i, j]\n end"
fails:"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda { |*, **k| k }"
@@ -1,2 +1,2 @@
fails:Magic comment must be at the first line
fails:Magic comment must be the first token of the line
fails:Magic comment must be the first token of the line
@@ -1,15 +1,12 @@
fails(inherited):Global variable $0 raises a TypeError when not given an object that can be coerced to a String
fails(inherited):Predefined global $' sets an empty result to the encoding of the source String
fails(inherited):Predefined global $-0 changes $/
fails(inherited):Predefined global $-0 does not call #to_str to convert the object to a String
fails(inherited):Predefined global $-0 raises a TypeError if assigned a boolean
fails(inherited):Predefined global $-0 raises a TypeError if assigned a Fixnum
fails(inherited):Predefined global $/ changes $-0
fails(inherited):Predefined global $` sets an empty result to the encoding of the source String
fails:Global variable $0 raises a TypeError when not given an object that can be coerced to a String
fails:Predefined global $! remains nil after a failed core class "checked" coercion against a class that defines method_missing
fails:Predefined global $' is equivalent to MatchData#post_match on the last match $~
fails:Predefined global $' sets an empty result to the encoding of the source String
fails:Predefined global $, raises TypeError if assigned a non-String
fails:Predefined global $-0 changes $/
fails:Predefined global $-0 does not call #to_str to convert the object to a String
@@ -22,7 +19,6 @@ fails:Predefined global $/ raises a TypeError if assigned a Fixnum
fails:Predefined global $_ is set at the method-scoped level rather than block-scoped
fails:Predefined global $_ is set to the last line read by e.g. StringIO#gets
fails:Predefined global $` is equivalent to MatchData#pre_match on the last match $~
fails:Predefined global $` sets an empty result to the encoding of the source String
fails:Predefined global $~ changes the value of derived capture globals when assigned
fails:Predefined global $~ changes the value of the derived following match global
fails:Predefined global $~ changes the value of the derived full match global
@@ -1,5 +1,2 @@
fails:Regexps with encoding modifiers preserves US-ASCII as /n encoding through interpolation if all chars are 7-bit
fails:Regexps with encoding modifiers preserves ASCII-8BIT as /n encoding through interpolation if all chars are 7-bit
fails:Regexps with encoding modifiers preserves Windows-31J as /s encoding through interpolation
fails:Regexps with encoding modifiers preserves UTF-8 as /u encoding through interpolation
fails:Regexps with encoding modifiers uses ASCII-8BIT as /n encoding if not all chars are 7-bit
@@ -2,8 +2,6 @@ fails:Ruby character strings taints the result of interpolation when an interpol
fails:Ruby character strings untrusts the result of interpolation when an interpolated value is untrusted
fails:Ruby character strings Unicode escaping can be done with \u{} and one to six hex digits
fails:Ruby character strings Unicode escaping can be done with \u and four hex digits
fails:Ruby character strings Unicode escaping with US-ASCII source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \u
fails:Ruby character strings Unicode escaping with US-ASCII source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \u{}
fails:Ruby String interpolation creates a String having an Encoding compatible with all components
fails:Ruby String interpolation creates a String having the Encoding of the components when all are the same Encoding
fails:Ruby String interpolation raises an Encoding::CompatibilityError if the Encodings are not compatible

0 comments on commit ddee507

Please sign in to comment.