Skip to content

Commit b1b9728

Browse files
richardleachleonerd
authored andcommitted
t/class/accessor.t - fix Writer copypasta
1 parent d1e2a85 commit b1b9728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/class/accessor.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ no warnings 'experimental::class';
5050

5151
# Write accessor wants exactly one argument
5252
ok(!eval { $o->set_s() },
53-
'Reader accessor fails with no argument');
53+
'Writer accessor fails with no argument');
5454
like($@, qr/^Too few arguments for subroutine \'Testcase2::set_s\' \(got 1; expected 2\) at /,
5555
'Failure from argument to accessor');
5656
ok(!eval { $o->set_s(1, 2) },
57-
'Reader accessor fails with 2 arguments');
57+
'Writer accessor fails with 2 arguments');
5858
like($@, qr/^Too many arguments for subroutine \'Testcase2::set_s\' \(got 3; expected 2\) at /,
5959
'Failure from argument to accessor');
6060
}

0 commit comments

Comments
 (0)