[t] Convert an exception test to PIR
[parrot.git] / t / pmc / null.t
blob24200a9f5c9e99996188bf6113ba90bec227a9bd
1 #! parrot
2 # Copyright (C) 2006-2008, Parrot Foundation.
3 # $Id$
5 =head1 NAME
7 t/pmc/null.t - test Null PMC
9 =head1 SYNOPSIS
11     % prove t/pmc/null.t
13 =head1 DESCRIPTION
15 Tests the Null PMC.
17 =cut
19 .sub main :main
20     .include 'test_more.pir'
22     plan(3)
24     new $P0, ['Null']
25     ok(1, 'Instantiated a Null PMC')
27     new $P1, ['Null']
28     $I0 = issame $P0, $P1
29     ok ($I0, 'Null is same as Null')
31     new $P2, ['Undef']
32     $I0 = issame $P0, $P2
33     nok($I0, 'Null is not same as not Undef')
34 .end
36 # Local Variables:
37 #   mode: pir
38 #   fill-column: 100
39 # End:
40 # vim: expandtab shiftwidth=4 ft=pir: