Changeset 25088 for lang/perl/Shika/trunk/t/010_core/04_handles.t
- Timestamp:
- 11/27/08 14:39:03 (4 years ago)
- Files:
-
- 1 modified
-
lang/perl/Shika/trunk/t/010_core/04_handles.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Shika/trunk/t/010_core/04_handles.t
r25058 r25088 1 1 use strict; 2 2 use warnings; 3 use Test::More tests => 1;3 use Test::More tests => 2; 4 4 5 5 { … … 14 14 15 15 { 16 package Foo ;16 package Foo1; 17 17 use Shika; 18 18 has bar => ( … … 21 21 } 22 22 23 my $f = Foo->new(bar => Bar->new()); 24 is $f->yay('hoge', 'fuga'), 'yay hoge, fuga'; 23 { 24 package Foo2; 25 use Shika; 26 has bar => ( 27 handles => 'yay', 28 ); 29 } 25 30 31 { 32 my $f = Foo1->new(bar => Bar->new()); 33 is $f->yay('hoge', 'fuga'), 'yay hoge, fuga'; 34 } 35 36 { 37 my $f = Foo2->new(bar => Bar->new()); 38 is $f->yay('hoge', 'fuga'), 'yay hoge, fuga'; 39 } 40
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)