Skip to content

Commit

Permalink
Update synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
kfly8 committed Aug 18, 2024
1 parent 7c51af3 commit 3993f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ package MyQux {
use kura Qux => sub { $_[0] eq 'qux' };
}

use MyFoo qw(Foo); isa_ok Foo, 'Data::Checks::Constraint';
use MyBar qw(Bar); isa_ok Bar, 'Type::Tiny';
use MyBaz qw(Baz); isa_ok Baz, 'Moose::Meta::TypeConstraint';
use MyQux qw(Qux); isa_ok Qux, 'Type::Tiny'; # CodeRef converted to Type::Tiny
use MyFoo qw(Foo);
use MyBar qw(Bar);
use MyBaz qw(Baz);
use MyQux qw(Qux); # CodeRef converted to Type::Tiny

ok Foo->check('foo') && !Foo->check('bar') && !Foo->check('baz') && !Foo->check('qux');
ok !Bar->check('foo') && Bar->check('bar') && !Bar->check('baz') && !Bar->check('qux');
Expand Down
8 changes: 4 additions & 4 deletions lib/kura.pm
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ kura - Store constraints for Data::Checks, Type::Tiny, Moose and more.
use kura Qux => sub { $_[0] eq 'qux' };
}
use MyFoo qw(Foo); isa_ok Foo, 'Data::Checks::Constraint';
use MyBar qw(Bar); isa_ok Bar, 'Type::Tiny';
use MyBaz qw(Baz); isa_ok Baz, 'Moose::Meta::TypeConstraint';
use MyQux qw(Qux); isa_ok Qux, 'Type::Tiny'; # CodeRef converted to Type::Tiny
use MyFoo qw(Foo);
use MyBar qw(Bar);
use MyBaz qw(Baz);
use MyQux qw(Qux); # CodeRef converted to Type::Tiny
ok Foo->check('foo') && !Foo->check('bar') && !Foo->check('baz') && !Foo->check('qux');
ok !Bar->check('foo') && Bar->check('bar') && !Bar->check('baz') && !Bar->check('qux');
Expand Down

0 comments on commit 3993f47

Please sign in to comment.