File: 03url.t

package info (click to toggle)
libtext-textile-perl 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 208 kB
  • ctags: 51
  • sloc: perl: 2,140; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -Tw

use warnings;
use strict;

use Test::More tests=>1;
use Text::Textile qw(textile);

my $source = '"title":http://www.example.com';
my $dest = textile($source);
my $expected = '<p><a href="http://www.example.com">title</a></p>';

is($dest, $expected, 'Do we match?');