From 340fc50af3a33f5d3f2fc1928d6ce34baae0bd4e Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 24 Mar 2024 16:15:13 +0100 Subject: Add freestanding star test --- src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/kotlin/moe/nea/blog/md') diff --git a/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt b/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt index b4b102a..0e08473 100644 --- a/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt +++ b/src/test/kotlin/moe/nea/blog/md/test/TestItalics.kt @@ -55,6 +55,16 @@ class TestItalics { assertInlineFormat("left italics middle bold right", "left *italics* middle **bold** right") } + @Test + fun testFreestandingStar() { + assertInlineFormat("left * right", "left * right") + } + + @Test + fun testFreestandingStarInItalics() { + assertInlineFormat("left * right", "*left * right*") + } + @Test fun testNested() { assertInlineFormat("a bold b", "*a **bold** b*") -- cgit