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_nv print_iv print_int
16 print_float print_long_double have_long_double
20 our $VERSION = '0.01';
22 bootstrap XS::APItest $VERSION;
29 XS::APItest - Test the perl C API
38 This module tests the perl C API. Currently tests that C<printf>
43 This module can be used to check that the perl C API is behaving
44 correctly. This module provides test functions and an associated
45 test script that verifies the output.
47 This module is not meant to be installed.
51 Exports all the test functions:
57 Test that a double-precision floating point number is formatted
58 correctly by C<printf>.
62 Output is sent to STDOUT.
64 =item B<print_long_double>
66 Test that a C<long double> is formatted correctly by
67 C<printf>. Takes no arguments - the test value is hard-wired
68 into the function (as "7").
72 Output is sent to STDOUT.
74 =item B<have_long_double>
76 Determine whether a C<long double> is supported by Perl. This should
77 be used to determine whether to test C<print_long_double>.
79 print_long_double() if have_long_double;
83 Test that an C<NV> is formatted correctly by
88 Output is sent to STDOUT.
92 Test that an C<IV> is formatted correctly by
97 Output is sent to STDOUT.
101 Test that an C<UV> is formatted correctly by
106 Output is sent to STDOUT.
110 Test that an C<int> is formatted correctly by
115 Output is sent to STDOUT.
119 Test that an C<long> is formatted correctly by
124 Output is sent to STDOUT.
128 Test that a single-precision floating point number is formatted
129 correctly by C<printf>.
133 Output is sent to STDOUT.
139 L<XS::Typemap>, L<perlapi>.
143 Tim Jenness, E<lt>t.jenness@jach.hawaii.eduE<gt>,
144 Christian Soeller, E<lt>csoelle@mph.auckland.ac.nzE<gt>,
145 Hugo van der Sanden E<lt>hv@crypt.compulink.co.ukE<gt>
147 =head1 COPYRIGHT AND LICENSE
149 Copyright (C) 2002 Tim Jenness, Christian Soeller, Hugo van der Sanden.
152 This library is free software; you can redistribute it and/or modify
153 it under the same terms as Perl itself.