File: twf-bug.t

package info (click to toggle)
libwiki-toolkit-formatter-usemod-perl 0.25-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 176 kB
  • sloc: perl: 258; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use Test::More tests => 1;
use Wiki::Toolkit::Formatter::UseMod;

my $formatter = Wiki::Toolkit::Formatter::UseMod->new;

my $foo = "x";
$foo .= "" if $foo =~ /x/;

my $html = $formatter->format("test");
is( $html, "<p>test</p>\n", "Text::WikiFormat bug avoided" );