test(swift): fix tests for int/double differenciation

This commit is contained in:
Lukas Obermann
2024-11-27 16:29:55 +01:00
parent 9b212662a7
commit 6efb53404c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,
{