Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions t/class/accessor.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ no warnings 'experimental::class';

# Write accessor wants exactly one argument
ok(!eval { $o->set_s() },
'Reader accessor fails with no argument');
'Writer accessor fails with no argument');
like($@, qr/^Too few arguments for subroutine \'Testcase2::set_s\' \(got 1; expected 2\) at /,
'Failure from argument to accessor');
ok(!eval { $o->set_s(1, 2) },
'Reader accessor fails with 2 arguments');
'Writer accessor fails with 2 arguments');
like($@, qr/^Too many arguments for subroutine \'Testcase2::set_s\' \(got 3; expected 2\) at /,
'Failure from argument to accessor');
}
Expand Down
Loading