| 1 | use strictscip-perl cpan Test-Most 0.42 strict/; |
| 2 | use warningsscip-perl cpan Test-Most 0.42 warnings/; |
| 3 | |
| 4 | use libscip-perl cpan Test-Most 0.42 lib/ 't/lib'; |
| 5 | use UsesTestMostscip-perl cpan Test-Most 0.42 UsesTestMost/; |
| 6 | |
| 7 | use Test::Mostscip-perl cpan Test-Most 0.42 Test/Most/ qw(!any); # exclude an import that has already been imported in UsesTestMost |
| 8 | |
| 9 | warning_isscip-perl cpan Test-Most 0.42 main/warning_is(). { |
| 10 | requirescip-perl cpan Test-Most 0.42 main/require(). List::Util; |
| 11 | List::Util->importscip-perl cpan Test-Most 0.42 List/Util/import().('any'); |
| 12 | } undef, 'List::Util::any imports without warnings after exclusion'; |
| 13 | |
| 14 | okscip-perl cpan Test-Most 0.42 main/ok(). anyscip-perl cpan Test-Most 0.42 main/any().( sub { $_scip-perl cpan Test-Most 0.42 main/$_. == 1 }, 1 ), 'List::Util::any is imported into the caller'; |
| 15 | |
| 16 | UsesTestMost::is_it_onescip-perl cpan Test-Most 0.42 UsesTestMost/is_it_one().(1); |
| 17 | |
| 18 | done_testing; |