fix tests

This commit is contained in:
Dennis Eichhorn 2023-10-23 18:06:30 +00:00
parent bf9d528076
commit d2d0c6bfcf
5 changed files with 18 additions and 10 deletions

View File

@ -6,14 +6,16 @@
"end": "20080213",
"organizer": null,
"summary": "Abraham Lincoln",
"description": "Born February 12, 1809\nSixteenth President (1861-1865)\\n\\n\\n\\nhttp://AmericanHistoryCalendar.com",
"location": "Hodgenville, Kentucky",
"description": "Born February 12, 1809\\nSixteenth President (1861-1865)\\n\\n\\n\\nhttp://AmericanHistoryCalendar.com",
"location": "Hodgenville\\, Kentucky",
"geo": {
"lat": 37.5739497,
"lon": -85.7399606
},
"url": "http://americanhistorycalendar.com/peoplecalendar/1,328-abraham-lincoln",
"freq": "YEARLY",
"bymonth": "2",
"bymonthday": null,
"interval": "1",
"count": null,
"until": null

View File

@ -87,11 +87,11 @@ final class MarkdownTest extends \PHPUnit\Framework\TestCase
$parser = new Markdown([
'toc' => true
]);
$parser->text(\file_get_contents(__DIR__ . '/manualdata/toc.md'));
self::assertEquals(
\file_get_contents(__DIR__ . '/manualdata/toc.html'),
$parser->text(\file_get_contents(__DIR__ . '/manualdata/toc.md'))
$parser->contentsList()
);
self::assertEquals('', $parser->contentsList());
}
}

View File

@ -1,2 +1,2 @@
```chartjs
```chart
```

View File

@ -1,4 +1,10 @@
<h1 id="a">A</h1>
<h2 id="1">1</h2>
<h3 id="i">i</h3>
<h1 id="b">B</h1>
<ul>
<li><a href="#a">A</a><ul>
<li><a href="#1">1</a><ul>
<li><a href="#i">i</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#b">B</a></li>
</ul>

File diff suppressed because one or more lines are too long