Skip to content

Commit d055f9a

Browse files
committed
Update tests
1 parent 20a3e3a commit d055f9a

File tree

12 files changed

+330
-211
lines changed

12 files changed

+330
-211
lines changed

ruby/ql/test/library-tests/ast/Ast.expected

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,11 +1716,11 @@ escape_sequences/escapes.rb:
17161716
literals/literals.rb:
17171717
# 1| [Toplevel] literals.rb
17181718
# 2| getStmt: [NilLiteral] nil
1719-
# 3| getStmt: [NilLiteral] NIL
1719+
# 3| getStmt: [ConstantReadAccess] NIL
17201720
# 4| getStmt: [BooleanLiteral] false
1721-
# 5| getStmt: [BooleanLiteral] FALSE
1721+
# 5| getStmt: [ConstantReadAccess] FALSE
17221722
# 6| getStmt: [BooleanLiteral] true
1723-
# 7| getStmt: [BooleanLiteral] TRUE
1723+
# 7| getStmt: [ConstantReadAccess] TRUE
17241724
# 10| getStmt: [IntegerLiteral] 1234
17251725
# 11| getStmt: [IntegerLiteral] 5_678
17261726
# 12| getStmt: [IntegerLiteral] 0
@@ -1752,6 +1752,8 @@ literals/literals.rb:
17521752
# 48| getStmt: [RationalLiteral] 23r
17531753
# 49| getStmt: [RationalLiteral] 9.85r
17541754
# 52| getStmt: [ComplexLiteral] 2i
1755+
# 53| getStmt: [ComplexLiteral] 3.14i
1756+
# 56| getStmt: [ComplexLiteral] 1.2ri
17551757
# 59| getStmt: [StringLiteral] ""
17561758
# 60| getStmt: [StringLiteral] ""
17571759
# 61| getStmt: [StringLiteral] "hello"
@@ -2054,10 +2056,10 @@ literals/literals.rb:
20542056
# 139| getStmt: [RangeLiteral] _ .. _
20552057
# 139| getEnd: [IntegerLiteral] 1
20562058
# 140| getStmt: [ParenthesizedExpr] ( ... )
2057-
# 140| getStmt: [SubExpr] ... - ...
2058-
# 140| getAnOperand/getLeftOperand/getReceiver: [RangeLiteral] _ .. _
2059-
# 140| getBegin: [IntegerLiteral] 0
2060-
# 140| getAnOperand/getArgument/getRightOperand: [IntegerLiteral] 1
2059+
# 140| getStmt: [RangeLiteral] _ .. _
2060+
# 140| getBegin: [IntegerLiteral] 0
2061+
# 140| getEnd: [UnaryMinusExpr] - ...
2062+
# 140| getAnOperand/getOperand/getReceiver: [IntegerLiteral] 1
20612063
# 143| getStmt: [SubshellLiteral] `ls -l`
20622064
# 143| getComponent: [StringTextComponent] ls -l
20632065
# 144| getStmt: [SubshellLiteral] `ls -l`
@@ -2990,6 +2992,16 @@ params/params.rb:
29902992
# 83| getReceiver: [LocalVariableAccess] array
29912993
# 83| getArgument: [BlockArgument] &...
29922994
# 83| getValue: [LocalVariableAccess] __synth__0
2995+
# 86| getStmt: [MethodCall] call to run_block
2996+
# 86| getReceiver: [SelfVariableAccess] self
2997+
# 86| getBlock: [BraceBlock] { ... }
2998+
# 86| getParameter: [SimpleParameter] x
2999+
# 86| getDefiningAccess: [LocalVariableAccess] x
3000+
# 86| getLocalVariable: [LocalVariableAccess] y
3001+
# 86| getLocalVariable: [LocalVariableAccess] z
3002+
# 86| getStmt: [MethodCall] call to puts
3003+
# 86| getReceiver: [SelfVariableAccess] self
3004+
# 86| getArgument: [LocalVariableAccess] x
29933005
erb/template.html.erb:
29943006
# 19| [Toplevel] template.html.erb
29953007
# 19| getStmt: [StringLiteral] "hello world"

0 commit comments

Comments
 (0)