File: opentag.t

package info (click to toggle)
libtext-wikicreole-perl 0.05-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 152 kB
  • ctags: 17
  • sloc: perl: 713; makefile: 43
file content (18 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!perl -T
use Test::Simple tests => 1;
use Text::WikiCreole;

# test user-customized open tag

creole_tag("p", "open", "<p class=special>");

$markup = qq|This is a paragraph.|;

$goodhtml = qq|<p class=special>This is a paragraph.</p>

|;

$html = creole_parse $markup;

ok( $html eq $goodhtml );