update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / MooseX-Method-Signatures / named_defaults.t
CommitLineData
98e6239b 1#!perl
2use strict;
3use warnings FATAL => 'all';
98e6239b 4use Test::More;
5
6{
7 package Foo;
8
9 use Function::Parameters qw(:strict);
10
1a52f2db 11 method new($class:) { bless {}, $class }
98e6239b 12 method bar (:$baz = 42) { $baz }
13}
14
15my $o = Foo->new;
16is($o->bar, 42);
17is($o->bar(baz => 0xaffe), 0xaffe);
18
19done_testing;