Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check attribute value #1

Open
xenoterracide opened this issue Oct 30, 2012 · 0 comments
Open

check attribute value #1

xenoterracide opened this issue Oct 30, 2012 · 0 comments
Labels

Comments

@xenoterracide
Copy link

I'd like to have something like

is_accessor_ok $obj, 'method', 'val'; # ok 1 My::Obj->accessor

the value here is not in having to write the message just to check to see that the value is what I expect.

Also it could double as can_ok, meaning it'd first check the can and report a can failure, and not throw an exception on that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants