package moe.nea.blog.gen import moe.nea.blog.md.Bold import moe.nea.blog.md.FormatSequence import moe.nea.blog.md.Paragraph import moe.nea.blog.md.Whitespace import moe.nea.blog.md.Word import kotlin.test.Test class HtmlTest : HtmlGenerationTest() { @Test fun testBiggerFile() { assertGeneratorMD( """ |

Hello World

lol hehe

public class ObjectControllerFactoryManagerProvider<T extends ObjectControllerFactoryManager<T>> {
			|   public ObjectControllerFactoryManagerProvider() {}
			|}
""".trimMargin(), """ |# Hello World | |***lol* hehe** | |```java |public class ObjectControllerFactoryManagerProvider> { | public ObjectControllerFactoryManagerProvider() {} |} |``` """.trimMargin() ) } @Test fun testBold() { assertGenerator("Hii", Bold(Word("Hii"))) } @Test fun testParagraphs() { assertGenerator( "

Test Whatever

", Paragraph(FormatSequence(Word("Test"), Whitespace(), Bold(Word("Whatever")))) ) } }