8 use base qw/ DynaLoader Exporter /;
10 # Items to export into callers namespace by default. Note: do not export
11 # names by default without a very good reason. Use EXPORT_OK instead.
12 # Do not simply export all your public functions/methods/constants.
14 # Export everything since these functions are only used by a test script
15 our @EXPORT = qw( print_double print_int print_long
16 print_float print_long_double have_long_double
19 our $VERSION = '0.01';
21 bootstrap XS::APItest $VERSION;
28 XS::APItest - Test the perl C API
37 This module tests the perl C API. Currently tests that C<printf>
42 This module can be used to check that the perl C API is behaving
43 correctly. This module provides test functions and an associated
44 test script that verifies the output.
46 This module is not meant to be installed.
50 Exports all the test functions:
56 Test that a double-precision floating point number is formatted
57 correctly by C<printf>.
61 Output is sent to STDOUT.
63 =item B<print_long_double>
65 Test that a C<long double> is formatted correctly by
66 C<printf>. Takes no arguments - the test value is hard-wired
67 into the function (as "7").
71 Output is sent to STDOUT.
73 =item B<have_long_double>
75 Determine whether a C<long double> is supported by Perl. This should
76 be used to determine whether to test C<print_long_double>.
78 print_long_double() if have_long_double;
82 Test that an C<NV> is formatted correctly by
87 Output is sent to STDOUT.
91 Test that an C<IV> is formatted correctly by
96 Output is sent to STDOUT.
100 Test that an C<UV> is formatted correctly by
105 Output is sent to STDOUT.
109 Test that an C<int> is formatted correctly by
114 Output is sent to STDOUT.
118 Test that an C<long> is formatted correctly by
123 Output is sent to STDOUT.
127 Test that a single-precision floating point number is formatted
128 correctly by C<printf>.
132 Output is sent to STDOUT.
138 L<XS::Typemap>, L<perlapi>.
142 Tim Jenness, E<lt>t.jenness@jach.hawaii.eduE<gt>,
143 Christian Soeller, E<lt>csoelle@mph.auckland.ac.nzE<gt>,
144 Hugo van der Sanden E<lt>hv@crypt.compulink.co.ukE<gt>
146 =head1 COPYRIGHT AND LICENSE
148 Copyright (C) 2002 Tim Jenness, Christian Soeller, Hugo van der Sanden.
151 This library is free software; you can redistribute it and/or modify
152 it under the same terms as Perl itself.