PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/perl5/rename_scope_runme.pl

#
Perl | 15 lines | 10 code | 3 blank | 2 comment | 0 complexity | f4960a91c9912b4ade47b4dbf3a9500b MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Test::More tests => 5;
  5. BEGIN { use_ok('rename_scope') }
  6. require_ok('rename_scope');
  7. # adapted from ../python/rename_scope_runme.py
  8. my $a = rename_scope::Natural_UP->new();
  9. is($a->rtest(), 1);
  10. my $b = rename_scope::Natural_BP->new();
  11. is($b->rtest(), 1);
  12. isa_ok(rename_scope->can('equals'), 'CODE');