-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PullRequest: truffleruby/4280
- Loading branch information
Showing
57 changed files
with
3,051 additions
and
3,425 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
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,4 +1,3 @@ | ||
fails:The defined? keyword for a scoped constant returns nil when a constant is defined on top-level but not on the class | ||
fails:The defined? keyword when called with a method name in a void context warns about the void context when parsing it | ||
fails:The defined? keyword for an expression &&= returns 'expression' for assigning a fully qualified constant with '&&=' | ||
fails:The defined? keyword for an expression ||= returns 'expression' for assigning a fully qualified constant with '||=' |
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,11 +1,2 @@ | ||
fails:The ** operator makes a caller-side copy when calling a method taking a positional Hash | ||
fails:Hash literal checks duplicated keys on initialization | ||
fails:Hash literal checks duplicated float keys on initialization | ||
fails(https://github.com/ruby/prism/issues/2005):Hash literal expands an '**{}' or '**obj' element with the last key/value pair taking precedence | ||
fails(https://github.com/ruby/prism/issues/2005):Hash literal expands an '**{}' and warns when finding an additional duplicate key afterwards | ||
fails(https://github.com/ruby/prism/issues/2005):Hash literal merges multiple nested '**obj' in Hash literals | ||
fails(https://github.com/ruby/prism/issues/2129):Hash literal raises an EncodingError at parse time when Symbol key with invalid bytes | ||
fails(https://github.com/ruby/prism/issues/2129):Hash literal raises an EncodingError at parse time when Symbol key with invalid bytes and 'key: value' syntax used | ||
fails:The ** operator makes a copy when calling a method taking a positional Hash | ||
fails:Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes | ||
fails:Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes and 'key: value' syntax used |
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,5 +1,3 @@ | ||
fails:Pattern matching alternative pattern does not support variable binding | ||
fails:Pattern matching Array pattern calls #deconstruct once for multiple patterns, caching the result | ||
fails:Pattern matching warning when one-line form warns about pattern matching is experimental feature | ||
fails:Pattern matching variable pattern does not support using variable name (except _) several times | ||
fails:Pattern matching Hash pattern raise SyntaxError when keys duplicate in pattern |
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 @@ | ||
fails:The rescue keyword raises SyntaxError when else is used without rescue and ensure | ||
fails(cause not set):The rescue keyword suppresses exception from block when raises one from rescue 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,3 +1 @@ | ||
slow:A Symbol literal inherits the encoding of the magic comment and can have a binary encoding | ||
fails(https://github.com/ruby/prism/issues/2129):A Symbol literal raises an EncodingError at parse time when Symbol with invalid bytes | ||
fails:A Symbol literal raises an SyntaxError at parse time when Symbol with invalid bytes |
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
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
54 changes: 54 additions & 0 deletions
54
spec/truffle/parsing/fixtures/rational_numbers/with_long_value.yaml
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
subject: "Integer" | ||
description: "with Long value (> 32 bits)" | ||
notes: > | ||
Rational literal with Integer value is represented by `Rational.convert(Integer, 1)`. | ||
Long value is represented by LongFixnumLiteralNode. | ||
focused_on_node: "org.truffleruby.language.dispatch.RubyCallNode" | ||
ruby: | | ||
2147483648r | ||
ast: | | ||
RubyCallNode | ||
attributes: | ||
descriptor = NoKeywordArgumentsDescriptor | ||
dispatchConfig = PRIVATE | ||
emptyKeywordsProfile = false | ||
flags = 1 | ||
isAttrAssign = false | ||
isSafeNavigation = false | ||
isSplatted = false | ||
isVCall = false | ||
lastArgIsNotHashProfile = false | ||
methodName = "convert" | ||
notEmptyKeywordsProfile = false | ||
notRuby2KeywordsHashProfile = false | ||
sourceCharIndex = 0 | ||
sourceLength = 11 | ||
children: | ||
arguments = [ | ||
LongFixnumLiteralNode | ||
attributes: | ||
flags = 0 | ||
sourceCharIndex = -1 | ||
sourceLength = 0 | ||
value = 2147483648 | ||
IntegerFixnumLiteralNode | ||
attributes: | ||
flags = 0 | ||
sourceCharIndex = -1 | ||
sourceLength = 0 | ||
value = 1 | ||
] | ||
receiver = | ||
ReadConstantNode | ||
attributes: | ||
flags = 0 | ||
name = "Rational" | ||
sourceCharIndex = -1 | ||
sourceLength = 0 | ||
children: | ||
moduleNode = | ||
ObjectClassLiteralNode | ||
attributes: | ||
flags = 0 | ||
sourceCharIndex = -1 | ||
sourceLength = 0 |
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
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.