/**
* Copyright 2011 Oliver Buchtala
*
* This file is part of ndogen.
*
* ndogen is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ndogen is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ndogen. If not, see <http://www.gnu.org/licenses/>.
*/
package org.ndogen.markdown;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.ndogen.Fixture;
import org.ndogen.TestUtils;
public class MarkdownScannerTest {
public void test(String fixtureName) {
Fixture fixture = TestUtils.getFixture("fixtures/markdown/scanner", fixtureName);
String output = TestUtils.getScannerOutput(MarkdownScanner.class, fixture);
assertEquals(fixture.getOutput(), output);
}
@Test
public void testSectionsWithRulers() throws Exception {
test("sections_rulers");
}
@Test
public void testSectionsWithHashes() throws Exception {
test("sections_hashes");
}
@Test
public void testInlineHtml() throws Exception {
test("inline_html");
}
@Test
public void testEmph() throws Exception {
test("emph");
}
@Test
public void testStrong() throws Exception {
test("strong");
}
@Test
public void testMixed1() throws Exception {
test("mixed1");
}
@Test
public void testList() throws Exception {
test("list");
}
@Test
public void testListWithEmph() throws Exception {
test("list_with_emph");
}
@Test
public void testNestedList() throws Exception {
test("nested_list");
}
@Test
public void testInlineCode() throws Exception {
test("inline_code");
}
@Test
public void testCodeBlock() throws Exception {
test("code_block");
}
@Test
public void testLink() throws Exception {
test("link");
}
@Test
public void testQuoteBlock() throws Exception {
test("quote_block");
}
@Test
public void testEmptyLineAfterBlocks() throws Exception {
test("empty_line_after_blocks");
}
@Test
public void testNoMultipleEmptyLines() throws Exception {
test("no_multiple_el");
}
}