Skip to content

Commit

Permalink
Update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Oct 29, 2024
1 parent f41d765 commit 91f4ea1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@ fun LanguageFrontend<*, *>.listComp(
val holder = this@Holder
if (holder is StatementHolder) {
holder += node
}
if (holder is ArgumentHolder) {
} else if (holder is ArgumentHolder) {
holder += node
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,7 @@ class FluentTest {
compExpr {
ref("i")
ref("someIterable")
ref("i") gt
literal(
5,
t("int")
) // TODO: This line doesn't work as
// expected
ref("i") gt literal(5, t("int"))
}
}
}
Expand Down Expand Up @@ -240,7 +235,7 @@ class FluentTest {
assertLocalName("i", compExpr.variable)
assertIs<Reference>(compExpr.iterable)
assertLocalName("someIterable", compExpr.iterable)
// assertEquals(1, compExpr.predicates.size)
assertNotNull(compExpr.predicate)
}

@Test
Expand All @@ -265,12 +260,7 @@ class FluentTest {
compExpr {
this.variable = declare { variable("i") }
ref("someIterable")
ref("i") gt
literal(
5,
t("int")
) // TODO: This line doesn't work as
// expected
ref("i") gt literal(5, t("int"))
}
}
}
Expand Down Expand Up @@ -299,7 +289,7 @@ class FluentTest {
assertLocalName("i", variableDecl.singleDeclaration)
assertIs<Reference>(compExpr.iterable)
assertLocalName("someIterable", compExpr.iterable)
// assertEquals(1, compExpr.predicates.size)
assertNotNull(compExpr.predicate)
}

@Test
Expand Down Expand Up @@ -327,12 +317,7 @@ class FluentTest {
variable("y")
}
ref("someIterable")
ref("i") gt
literal(
5,
t("int")
) // TODO: This line doesn't work as
// expected
ref("i") gt literal(5, t("int"))
}
}
}
Expand Down Expand Up @@ -362,6 +347,6 @@ class FluentTest {
assertLocalName("y", variableDecl.declarations[1])
assertIs<Reference>(compExpr.iterable)
assertLocalName("someIterable", compExpr.iterable)
// assertEquals(1, compExpr.predicates.size)
assertNotNull(compExpr.predicate)
}
}

0 comments on commit 91f4ea1

Please sign in to comment.