[libmoosex-semiaffordanceaccessor-perl] 02/10: add test for is => 'bare'
Intrigeri
intrigeri at moszumanska.debian.org
Thu Aug 28 15:44:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to annotated tag 0.04
in repository libmoosex-semiaffordanceaccessor-perl.
commit 08ec520a68363e3442e430c8699a630b49b52001
Author: Jesse Luehrs <doy at tozt.net>
Date: Wed Jul 8 18:13:04 2009 -0500
add test for is => 'bare'
---
t/basic.t | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/t/basic.t b/t/basic.t
index 3df6729..3b6532b 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
-use Test::More tests => 19;
+use Test::More tests => 21;
{
@@ -45,6 +45,15 @@ use Test::More tests => 19;
has 'thing2' => ( is => 'rw', writer => 'set_it' );
}
+{
+ package SAA4;
+
+ use Moose;
+ use MooseX::SemiAffordanceAccessor;
+
+ has bare => ( is => 'bare' );
+}
+
ok( Standard->can('thing'), 'Standard->thing() exists' );
ok( ! Standard->can('set_thing'), 'Standard->set_thing() does not exist' );
@@ -68,3 +77,6 @@ ok( ! SAA3->can('set_thing'), 'SAA3->set_thing does not exist' );
ok( SAA3->can('thing2'), 'SAA3->thing2 exists' );
ok( ! SAA3->can('set_thing2'), 'SAA3->set_thing2 does not exist' );
ok( SAA3->can('set_it'), 'SAA3->set_it does exist' );
+
+ok( ! SAA4->can('bare'), 'SAA4->bare does not exist' );
+ok( ! SAA4->can('set_bare'), 'SAA4->set_bare does not exist' );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-semiaffordanceaccessor-perl.git
More information about the Pkg-perl-cvs-commits
mailing list