test: 引用と装飾が組み合わさったときのテストを追加

This commit is contained in:
usbharu 2024-11-17 01:25:51 +09:00
parent f3d3a9fb09
commit f14934891a
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
1 changed files with 33 additions and 0 deletions

View File

@ -501,4 +501,37 @@ class ParserTest {
), actual ), 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
)
}
} }