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

View File

@ -87,11 +87,11 @@ final class MarkdownTest extends \PHPUnit\Framework\TestCase
$parser = new Markdown([ $parser = new Markdown([
'toc' => true 'toc' => true
]); ]);
$parser->text(\file_get_contents(__DIR__ . '/manualdata/toc.md'));
self::assertEquals( self::assertEquals(
\file_get_contents(__DIR__ . '/manualdata/toc.html'), \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> <ul>
<h2 id="1">1</h2> <li><a href="#a">A</a><ul>
<h3 id="i">i</h3> <li><a href="#1">1</a><ul>
<h1 id="b">B</h1> <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