diff --git a/Tests/SpyableMacroTests/Factories/UT_ReceivedArgumentsFactory.swift b/Tests/SpyableMacroTests/Factories/UT_ReceivedArgumentsFactory.swift index 4189d55..949e530 100644 --- a/Tests/SpyableMacroTests/Factories/UT_ReceivedArgumentsFactory.swift +++ b/Tests/SpyableMacroTests/Factories/UT_ReceivedArgumentsFactory.swift @@ -23,6 +23,14 @@ final class UT_ReceivedArgumentsFactory: XCTestCase { ) } + func testVariableDeclarationSingleExistentialTypeArgument() throws { + try assertProtocolFunction( + withFunctionDeclaration: "func foo(bar: any BarProtocol)", + prefixForVariable: "_prefix_", + expectingVariableDeclaration: "var _prefix_ReceivedBar: (any BarProtocol)?" + ) + } + func testVariableDeclarationSingleArgumentDoubleParameterName() throws { try assertProtocolFunction( withFunctionDeclaration: "func foo(firstName secondName: (String, Int))",