summaryrefslogtreecommitdiff
path: root/src/test/kotlin/moe/nea/blog/gen/HtmlTest.kt
diff options
context:
space:
mode:
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() {