From 28a430a2f281f84f3e84e9ac7d72d343de545371 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Thu, 24 Mar 2022 10:02:24 +1300 Subject: [PATCH] Ruby: Fix bad name of lambda in test This isn't the identity function, so it's confusing for it to be named so. --- ruby/ql/test/library-tests/ast/Ast.expected | 2 +- ruby/ql/test/library-tests/ast/calls/calls.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/ql/test/library-tests/ast/Ast.expected b/ruby/ql/test/library-tests/ast/Ast.expected index 620ac31e2dd..adb3f41dec6 100644 --- a/ruby/ql/test/library-tests/ast/Ast.expected +++ b/ruby/ql/test/library-tests/ast/Ast.expected @@ -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 diff --git a/ruby/ql/test/library-tests/ast/calls/calls.rb b/ruby/ql/test/library-tests/ast/calls/calls.rb index 3106072622c..46815457f17 100644 --- a/ruby/ql/test/library-tests/ast/calls/calls.rb +++ b/ruby/ql/test/library-tests/ast/calls/calls.rb @@ -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