File: build_emulates_new.t

package info (click to toggle)
libmoosex-app-cmd-perl 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: perl: 366; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;

use Test::More tests => 1;
{

    package Foo;
    use base 'App::Cmd';

    package Bar;
    use Moose;
    extends 'MooseX::App::Cmd';

}

my @attrs = qw(arg0 command full_arg0 show_version);
my $foo; @{$foo}{@attrs} = @{ Foo->new }{@attrs};
my $bar; @{$bar}{@attrs} = @{ Bar->new }{@attrs};

is_deeply( $bar, $foo, 'Internal hashes match' );