test(swift): fix tests for int/double differenciation
This commit is contained in:
@@ -167,7 +167,7 @@ describe("statementNodeToDeclNode", () => {
|
||||
variableDecl({}, SwiftAst.Keyword.let, [
|
||||
patternBinding(
|
||||
identifierPattern("constantValue"),
|
||||
identifierType("Int")
|
||||
identifierType("Double")
|
||||
),
|
||||
]),
|
||||
variableDecl({}, SwiftAst.Keyword.let, [
|
||||
|
||||
@@ -79,7 +79,7 @@ describe("generateStructInitializers", () => {
|
||||
variableDecl({}, Keyword.let, [
|
||||
patternBinding(
|
||||
identifierPattern("value"),
|
||||
optionalType(identifierType("Int"))
|
||||
optionalType(identifierType("Double"))
|
||||
),
|
||||
]),
|
||||
initializerDecl(
|
||||
@@ -88,7 +88,7 @@ describe("generateStructInitializers", () => {
|
||||
functionParameter(identifierType("String"), "id"),
|
||||
|
||||
functionParameter(
|
||||
optionalType(identifierType("Int")),
|
||||
optionalType(identifierType("Double")),
|
||||
"value",
|
||||
undefined,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user