test: add regression test

This commit is contained in:
2026-02-19 17:53:25 +01:00
parent b2969d8f47
commit f6d87eb878

View File

@@ -2,7 +2,7 @@
use strict;
use warnings;
use Test::More tests => 5;
use Test::More tests => 6;
use MarkdownParser;
my $parser = MarkdownParser->new();
@@ -32,4 +32,8 @@ is(
"<pre><code>\n</code></pre>\n",
"Empty code block"
);
is(
$parser->parse("```\nunterminated"),
"<pre><code>\nunterminated\n</code></pre>\n",
"Unclosed code block is closed at EOF"
);