summaryrefslogtreecommitdiff
path: root/t/op/cond.t
blob: 25d506047b6cf9f698056168296fcc71bb8b9690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!./perl

BEGIN {
    chdir 't' if -d 't';
    require './test.pl';
    set_up_inc('../lib');
}

is( 1 ? 1 : 0, 1, 'compile time, true' );
is( 0 ? 0 : 1, 1, 'compile time, false' );

$x = 1;
is(  $x ? 1 : 0, 1, 'run time, true');
is( !$x ? 0 : 1, 1, 'run time, false');

done_testing();