mirror of
https://github.com/chrisdone/duet.git
synced 2025-01-08 06:53:22 +03:00
Test for lambda variable args
This commit is contained in:
parent
5b101abaf0
commit
0f0c2c15c1
@ -307,6 +307,26 @@ lambdaTests =
|
||||
(Label {labelUUID = UUID "4"})
|
||||
(Identifier {identifierString = "_"})
|
||||
}))))
|
||||
, Test
|
||||
"Lambda variable argument"
|
||||
[KeyPressAction '\\', KeyPressAction 'a']
|
||||
(focus
|
||||
(UUID "3")
|
||||
(rhsSelectedState
|
||||
(LambdaExpression
|
||||
(Label {labelUUID = UUID "1"})
|
||||
(Alternative
|
||||
{ alternativeLabel = Label {labelUUID = UUID "2"}
|
||||
, alternativePatterns =
|
||||
[ VariablePattern
|
||||
(Label {labelUUID = UUID "3"})
|
||||
(Identifier {identifierString = "a"})
|
||||
]
|
||||
, alternativeExpression =
|
||||
ConstantExpression
|
||||
(Label {labelUUID = UUID "4"})
|
||||
(Identifier {identifierString = "_"})
|
||||
}))))
|
||||
, Test
|
||||
"Lambda delete via arg"
|
||||
[KeyPressAction '\\', KeyDownAction False BackspaceKey]
|
||||
|
Loading…
Reference in New Issue
Block a user