diff options
author | James E Keenan <jkeenan@cpan.org> | 2021-12-01 13:04:45 +0000 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2021-12-07 23:53:35 +0000 |
commit | b2d0d92ba8eefbcb5afd8e04a8f263b4938f26ef (patch) | |
tree | 609a32d6c8d60d9cb9269f45c7a40b7f0055d222 /pp.c | |
parent | ad06173e13ddbddbf53a4f776f5c03f061acb68f (diff) | |
download | perl-b2d0d92ba8eefbcb5afd8e04a8f263b4938f26ef.tar.gz |
Test equivalence of 'true' and 'false' to negated statements
The documentation for lib/builtin.pm asserts that 'true' is equivalent
to !!1 or !0, and that false is equivalent to !!0 or !1. Demonstrate
that this is so.
Per review by Paul Evans in https://github.com/Perl/perl5/pull/19252,
we'll use cmp_ok() rather than is() and test for each of 'eq' and '=='.
Diffstat (limited to 'pp.c')
0 files changed, 0 insertions, 0 deletions