Cond.t 406B

123456789101112131415161718
  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();
  12. # os=@w7a,wxx;proto==imap;ver>=2012;