Skip to content

Commit 28a430a

Browse files
committed
Ruby: Fix bad name of lambda in test
This isn't the identity function, so it's confusing for it to be named so.
1 parent 3b4206c commit 28a430a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ calls/calls.rb:
710710
# 350| getAnOperand/getLeftOperand: [LocalVariableAccess] y
711711
# 350| getAnOperand/getRightOperand: [IntegerLiteral] 1
712712
# 351| getStmt: [AssignExpr] ... = ...
713-
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] id
713+
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] one
714714
# 351| getAnOperand/getRightOperand: [Lambda] -> { ... }
715715
# 351| getParameter: [SimpleParameter] x
716716
# 351| getDefiningAccess: [LocalVariableAccess] x

ruby/ql/test/library-tests/ast/calls/calls.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def foo(a, b, ...)
348348

349349
# calls inside lambdas
350350
y = 1
351-
id = ->(x) { y }
351+
one = ->(x) { y }
352352
f = ->(x) { foo x }
353353
g = ->(x) { unknown_call }
354354
h = -> (x) do

0 commit comments

Comments
 (0)