From f14934891a73547d6052bba5669a96a07a0ef854 Mon Sep 17 00:00:00 2001 From: usbharu Date: Sun, 17 Nov 2024 01:25:51 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=E5=BC=95=E7=94=A8=E3=81=A8=E8=A3=85?= =?UTF-8?q?=E9=A3=BE=E3=81=8C=E7=B5=84=E3=81=BF=E5=90=88=E3=82=8F=E3=81=95?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/markdown/ParserTest.kt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt b/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt index 39b5b88..2f1d0fe 100644 --- a/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt +++ b/library/src/commonTest/kotlin/dev/usbharu/markdown/ParserTest.kt @@ -501,4 +501,37 @@ class ParserTest { ), actual ) } + + @Test + fun quoteと装飾() { + + val parser = Parser() + + val actual = parser.parse( + listOf( + Quote(1), Asterisk(1, '*'), Text("a"), Asterisk(1, '*') + ) + ) + + println(actual) + println(actual.print()) + + assertEquals( + RootNode( + BodyNode( + listOf( + QuoteNode( + mutableListOf( + ItalicNode( + mutableListOf(PlainText("a")) + ) + + ) + ) + ) + ) + ), actual + ) + + } } \ No newline at end of file