CPAN-Meta-Requirements

 view release on metacpan or  search on metacpan

t/basic.t  view on Meta::CPAN


  $req->add_minimum(Foo => 1);
  $req->add_exclusion(Foo => 1);
  $req->add_maximum(Foo => 2);

  is_deeply(
    $req->as_string_hash,
    {
      Foo => '> 1, <= 2',
    },
    "we can exclude an endpoint",
  );
}

{
  my $req = CPAN::Meta::Requirements->new;
  $req->add_minimum(Foo => 1);

  $req->add_exclusion(Foo => 1);

  dies_ok { $req->add_maximum(Foo => 1); }

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.479 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )