summaryrefslogtreecommitdiff
path: root/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-02 23:32:11 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-02 23:42:15 +0200
commit7e24b934bbd424669a1c935894dd8799d4db0348 (patch)
treeea17a94215768ed6dea8a306a0bd58dfd936fb5f /src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt
parentebe41fbbd8b537b3008c5c52d2c9a496694ea281 (diff)
downloadblog-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.kt18
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() {