diff options
author | James E Keenan <jkeenan@cpan.org> | 2012-12-29 11:09:34 -0500 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2013-01-05 14:12:55 -0500 |
commit | 129da470b34ba9fe0fc51cba042f0581496b6ce0 (patch) | |
tree | 2fd4415405a2ea5e92324d94e2227ec86883c88f /t | |
parent | ba4de515af73cead61b851273b58704e43a3aaa3 (diff) | |
download | perl-129da470b34ba9fe0fc51cba042f0581496b6ce0.tar.gz |
Add parens around second argument to tests 4 and 5.
If a description were to be added to these tests, in the absence of
parentheses the scalar prototype of CORE::not would enforce a scalar context
onto the balance of the statement, leading to apparently anomalous behavior,
viz., the descriptions would not be printed and test 5 would be reported to
FAIL.
Diffstat (limited to 't')
-rw-r--r-- | t/op/not.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/op/not.t b/t/op/not.t index 3d07797daa..aa3e192928 100644 --- a/t/op/not.t +++ b/t/op/not.t @@ -14,8 +14,8 @@ is(not(), 1); is(not(), not(0)); # test not(..) and ! -is(! 1, not 1); -is(! 0, not 0); +is(! 1, (not 1)); +is(! 0, (not 0)); is(! (0, 0), not(0, 0)); # test the return of ! |