Skip to content

Commit 9ce26d3

Browse files
committed
test(lexer): test malformed nameless function
1 parent dfdade6 commit 9ce26d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

quarkdown-test/src/test/kotlin/com/quarkdown/test/FunctionCallTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ class FunctionCallTest {
145145
}
146146
}
147147

148+
@Test
149+
fun `malformed nameless function does not parse`() {
150+
execute(".") { assertEquals("<p>.</p>", it) }
151+
execute("abc . def") { assertEquals("<p>abc . def</p>", it) }
152+
execute(". {def}") { assertEquals("<p>. {def}</p>", it) }
153+
}
154+
148155
@Test
149156
fun `identity function chain`() {
150157
execute(".{10}::multiply {2}::sum {5}") {

0 commit comments

Comments
 (0)