File: 31angleedgecase.t

package info (click to toggle)
libtext-markdown-perl 1.000031-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,988 kB
  • sloc: perl: 2,164; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use Test::More tests => 2;

# http://babelmark.bobtfish.net/?markdown=x%3Cmax(a%2Cb)%0D%0A&normalize=on

use_ok('Text::Markdown');

my $m = Text::Markdown->new;

my $in = q{x<max(a,b)};
my $ex = q{<p>x&lt;max(a,b)</p>};

{
    local $TODO = 'Known "bug" (the no < unless next to space thing was originally by design) - but I would like to
break the spec and fix this..';
    is ($m->markdown($in), $ex);
};