Skip to content

Commit

Permalink
Add test case to ReceivedArgumentsFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshiki-tsukada committed Jun 21, 2024
1 parent 86da8c2 commit fee164e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))",
Expand Down

0 comments on commit fee164e

Please sign in to comment.