diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-02 23:32:11 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-02 23:42:15 +0200 |
commit | 7e24b934bbd424669a1c935894dd8799d4db0348 (patch) | |
tree | ea17a94215768ed6dea8a306a0bd58dfd936fb5f /src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt | |
parent | ebe41fbbd8b537b3008c5c52d2c9a496694ea281 (diff) | |
download | blog-infra-7e24b934bbd424669a1c935894dd8799d4db0348.tar.gz blog-infra-7e24b934bbd424669a1c935894dd8799d4db0348.tar.bz2 blog-infra-7e24b934bbd424669a1c935894dd8799d4db0348.zip |
Add note blocks and an integration test
Diffstat (limited to 'src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt')
-rw-r--r-- | src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt b/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt index 4b76a5f..439fbeb 100644 --- a/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt +++ b/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt @@ -2,28 +2,12 @@ package moe.nea.blog.gen import moe.nea.blog.md.Bold import moe.nea.blog.md.FormatSequence -import moe.nea.blog.md.MarkdownElement -import moe.nea.blog.md.MarkdownParser import moe.nea.blog.md.Paragraph import moe.nea.blog.md.Whitespace import moe.nea.blog.md.Word import kotlin.test.Test -import kotlin.test.assertEquals -class HtmlTest { - - fun assertGenerator(generatedHtml: String, markdown: MarkdownElement) { - val generator = MD2HtmlGenerator() - generator.registerDefaultGenerators() - assertEquals(generatedHtml, generator.generateHtml(markdown).text) - } - - fun assertGeneratorMD(generatedHtml: String, text: String) { - val generator = MD2HtmlGenerator() - generator.registerDefaultGenerators() - assertEquals(generatedHtml, - generator.generateHtml(MarkdownParser(text).also { it.addDefaultParsers() }.readDocument()).text) - } +class HtmlTest : HtmlGenerationTest() { @Test fun testBiggerFile() { |