root/lang/perl/String-IRC/trunk/t/03.complex.t @ 10701

Revision 10701, 488 bytes (checked in by hirose31, 5 years ago)

impo

Line 
1# -*- mode: cperl; -*-
2use Test::Base;
3use String::IRC;
4
5plan tests => 1 * blocks;
6
7run {
8    my $block = shift;
9    my $x = String::IRC->new( $block->input );
10
11    my @methods = split /\s+/, $block->name;
12    $x->$_() for @methods;
13
14    is "$x", $block->expect, $block->name;
15};
16
17__END__
18=== bold yellow
19--- input:  hello
20--- expect: 8hello
21=== bold yellow underline
22--- input:  hello
23--- expect: 8hello
24=== bold yellow underline inverse
25--- input:  hello
26--- expect: 8hello
Note: See TracBrowser for help on using the browser.