Skip to content
Snippets Groups Projects
Commit 02670c91 authored by Robin Stocker's avatar Robin Stocker
Browse files

Test tabs properly

parent 724619b0
Branches
Tags
No related merge requests found
...@@ -115,6 +115,11 @@ public class MarkdownRendererTest { ...@@ -115,6 +115,11 @@ public class MarkdownRendererTest {
// Inlines // Inlines
@Test
public void testTabs() {
assertRoundTrip("a\tb\n");
}
@Test @Test
public void testEscaping() { public void testEscaping() {
// These are a bit tricky. We always escape some characters, even though they only need escaping if they would // These are a bit tricky. We always escape some characters, even though they only need escaping if they would
......
...@@ -62,7 +62,7 @@ public class SpecMarkdownRendererTest { ...@@ -62,7 +62,7 @@ public class SpecMarkdownRendererTest {
System.out.println(); System.out.println();
} }
int expectedPassed = 625; int expectedPassed = 629;
assertTrue("Expected at least " + expectedPassed + " examples to pass but was " + passes.size(), passes.size() >= expectedPassed); assertTrue("Expected at least " + expectedPassed + " examples to pass but was " + passes.size(), passes.size() >= expectedPassed);
} }
...@@ -89,6 +89,7 @@ public class SpecMarkdownRendererTest { ...@@ -89,6 +89,7 @@ public class SpecMarkdownRendererTest {
} }
private String renderHtml(String source) { private String renderHtml(String source) {
return HTML_RENDERER.render(parse(source)); // The spec uses "rightwards arrow" to show tabs
return HTML_RENDERER.render(parse(source)).replace("\t", "\u2192");
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment