diff --git a/t/06-code.t b/t/06-code.t index f2855a0..a8709f0 100755 --- a/t/06-code.t +++ b/t/06-code.t @@ -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( "
\n
\n", "Empty code block" ); - +is( + $parser->parse("```\nunterminated"), + "
\nunterminated\n
\n", + "Unclosed code block is closed at EOF" +);