Fix docs. The phrases "Fewer than 1%" and "over 96%" are very confusing, so I removed...
[gitmo/Mouse.git] / xt / 05_dbsub.t
CommitLineData
6d5a6273 1#!perl -w
2BEGIN{ $^P = 0x10 | 0x200 }
3use Test::More;
4
5sub DB::DB {}
6
7{
8 package Foo;
9 use Mouse;
10
11 __PACKAGE__->meta->add_method(bar => sub{ __LINE__ });
12}
13
14if(Mouse::Util::MOUSE_XS){
15is $DB::sub{'Foo::bar'}, sprintf('%s:%d-%d', __FILE__, Foo->bar, Foo->bar),
16 '%DB::sub updated';
17}
18else{
19 pass 'under Mouse::PurePerl';
20}
21
22done_testing;