This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
miniperl/minitest cannot do these tests.
[perl5.git] / t / op / cond.t
... / ...
CommitLineData
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 require './test.pl';
6 set_up_inc('../lib');
7}
8
9is( 1 ? 1 : 0, 1, 'compile time, true' );
10is( 0 ? 0 : 1, 1, 'compile time, false' );
11
12$x = 1;
13is( $x ? 1 : 0, 1, 'run time, true');
14is( !$x ? 0 : 1, 1, 'run time, false');
15
16done_testing();