Test for lambda variable args

This commit is contained in:
Chris Done 2017-12-11 10:35:56 +00:00
parent 5b101abaf0
commit 0f0c2c15c1

View File

@ -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]