/
null.t
52 lines (36 loc) · 806 Bytes
/
null.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! ../../parrot
# Copyright (C) 2008, The Perl Foundation.
=head1 NAME
t/pmc/null.t - Testing the PhpNull PMC
=head1 SYNOPSIS
% perl t/harness t/pmc/null.t
=head1 DESCRIPTION
Tests C<PhpNull> PMC.
=cut
.loadlib "pipp_group"
.sub 'main' :main
.include "include/test_more.pir"
plan(2)
truth_tests()
stringification_tests()
.end
.sub truth_tests
.local pmc null_value
null_value = new 'PhpNull'
nok(null_value,"PhpNull isn't")
.end
.sub stringification_tests
.local pmc null_value
.local string s
.local int is_ok
null_value = new 'PhpNull'
s = null_value
is_ok = s == ''
ok( is_ok, 'stringification' )
.end
# Local Variables:
# mode: pir
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir: