mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +00:00
fix tests
This commit is contained in:
parent
bf9d528076
commit
d2d0c6bfcf
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
```chartjs
|
```chart
|
||||||
```
|
```
|
||||||
|
|
@ -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
Loading…
Reference in New Issue
Block a user