feat: add unit tests

This commit is contained in:
2025-11-12 19:28:48 +01:00
parent 0eca6d6725
commit 6e9ce92cde
12 changed files with 510 additions and 0 deletions

13
t/08-horizontal-rules.t Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More tests => 3;
use MarkdownParser;
my $parser = MarkdownParser->new();
is( $parser->parse("---"), "<hr>\n", "Horizontal rule with ---" );
is( $parser->parse("***"), "<hr>\n", "Horizontal rule with ***" );
is( $parser->parse("___"), "<hr>\n", "Horizontal rule with ___" );