Cond.t 369B

1234567891011121314151617
  1. use Test::More;
  2. use lib 'lib';
  3. use helper;
  4. BEGIN { use_ok( 'SugarTrail::Template::Condition' ); }
  5. require_ok( 'SugarTrail::Template::Condition' );
  6. my $params = { os => "wxx", proto => "imap" };
  7. my $c = SugarTrail::Template::Condition->new('proto==imap');
  8. ok($c, "c is true");
  9. ok($c->match($params), "params match");
  10. &helper::dmupp(condition=>$c);
  11. done_testing();