test/parser_test.rb in trac-wiki-0.1.5 vs test/parser_test.rb in trac-wiki-0.1.6

- old
+ new

@@ -126,9 +126,12 @@ tc "<p>test $ e<sup>{i\\pi} test</sup></p>\n", 'test $ e^{i\pi} test', math: true tc "<p>$the$</p>\n", '$the$', math: false tc "<p>ahoj</p>\n$$e^{i\\pi}$$\n<p>nazdar</p>\n", "ahoj\n$$e^{i\\pi}$$\nnazdar", math: true tc "<p>ahoj $$e<sup>{i\\pi}$$ nazdar</sup></p>\n", "ahoj\n$$e^{i\\pi}$$\nnazdar", math: false + + tc "$$\\\\$$\n", "$$\\\\$$", math: true + tc "$$\n^test\n$$\n", "$$\n^test\n$$", math: true end it 'should parse headings' do # Only three differed sized levels of heading are required. tc "<h1>Heading 1</h1>", "= Heading 1 =" tc "<h2>Heading 2</h2>", "== Heading 2 =="