Ruby: Fix bad name of lambda in test

This isn't the identity function, so it's confusing for it to be named
so.
This commit is contained in:
Harry Maclean
2022-03-24 10:02:24 +13:00
parent 3b4206cebf
commit 28a430a2f2
2 changed files with 2 additions and 2 deletions

View File

@@ -710,7 +710,7 @@ calls/calls.rb:
# 350| getAnOperand/getLeftOperand: [LocalVariableAccess] y
# 350| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 351| getStmt: [AssignExpr] ... = ...
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] id
# 351| getAnOperand/getLeftOperand: [LocalVariableAccess] one
# 351| getAnOperand/getRightOperand: [Lambda] -> { ... }
# 351| getParameter: [SimpleParameter] x
# 351| getDefiningAccess: [LocalVariableAccess] x

View File

@@ -348,7 +348,7 @@ foo(X:)
# calls inside lambdas
y = 1
id = ->(x) { y }
one = ->(x) { y }
f = ->(x) { foo x }
g = ->(x) { unknown_call }
h = -> (x) do