feat: add unit tests
This commit is contained in:
13
t/08-horizontal-rules.t
Executable file
13
t/08-horizontal-rules.t
Executable 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 ___" );
|
||||
|
||||
Reference in New Issue
Block a user