File: 06-masonobj.t

package info (click to toggle)
libtext-micromason-perl 2.23-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 600 kB
  • sloc: perl: 3,236; makefile: 23
file content (19 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

use strict;
use Test::More tests => 3;

use_ok 'Text::MicroMason';
ok my $m = Text::MicroMason->new();

######################################################################

{
    my $scr_mobj = 'You\'ve been compiled by <% ref $m %>.';
    my $res_mobj = 'You\'ve been compiled by Text::MicroMason';

    like $m->execute( text => $scr_mobj), qr/^\Q$res_mobj\E/;
}

######################################################################