| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use strictscip-perl cpan Devel-Refcount 0.10 strict/; |
| 4 | use warningsscip-perl cpan Devel-Refcount 0.10 warnings/; |
| 5 | |
| 6 | use Test::Morescip-perl cpan Devel-Refcount 0.10 Test/More/ tests => 3; |
| 7 | use Test::Fatalscip-perl cpan Devel-Refcount 0.10 Test/Fatal/; |
| 8 | |
| 9 | use Devel::Refcountscip-perl cpan Devel-Refcount 0.10 Devel/Refcount/ qw( refcount ); |
| 10 | |
| 11 | okscip-perl cpan Devel-Refcount 0.10 main/ok().( exceptionscip-perl cpan Devel-Refcount 0.10 main/exception(). { refcountscip-perl cpan Devel-Refcount 0.10 main/refcount().() }, |
| 12 | 'refcount with no args fails' ); |
| 13 | |
| 14 | okscip-perl cpan Devel-Refcount 0.10 main/ok().( exceptionscip-perl cpan Devel-Refcount 0.10 main/exception(). { refcountscip-perl cpan Devel-Refcount 0.10 main/refcount().(undef) }, |
| 15 | 'refcount with undef arg fails' ); |
| 16 | |
| 17 | okscip-perl cpan Devel-Refcount 0.10 main/ok().( exceptionscip-perl cpan Devel-Refcount 0.10 main/exception(). { refcountscip-perl cpan Devel-Refcount 0.10 main/refcount().("hello") }, |
| 18 | 'refcount with non-ref arg fails' ); |