Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cf2d02f78d
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.488 kb
use warnings;
use strict;
use Test::More tests => 4;
BEGIN { use_ok 'App::Twirc::Plugin::BangCommands' }
my $plugin = App::Twirc::Plugin::BangCommands->new;
sub call {
my $text = shift;
$plugin->preprocess((undef) x 3, \$text);
return $text;
is call('foo bar'), 'post foo bar', 'implicit post';
is call('!post foo bar'), 'post foo bar', 'explicit post';
is call('!cmd foo bar'), 'cmd foo bar', 'other command';
exit 0;
Jump to Line
Something went wrong with that request. Please try again.