| 1 |
#!/usr/bin/perl -w |
| 2 |
use strict; |
| 3 |
use Test::More; |
| 4 |
use Finance::Quote; |
| 5 |
|
| 6 |
if (not $ENV{TEST_AUTHOR}) { |
| 7 |
plan( skip_all => 'Author test. Set $ENV{TEST_AUTHOR} to true to run.'); |
| 8 |
} |
| 9 |
|
| 10 |
plan tests => 1; |
| 11 |
|
| 12 |
# F::Q doesn't load all its code until we actually create |
| 13 |
# an object. |
| 14 |
|
| 15 |
my $fq = Finance::Quote->new; |
| 16 |
|
| 17 |
# Sometimes Data::Dumper gets left in code by accident. Make sure |
| 18 |
# we haven't done so. |
| 19 |
# Older versions of XML::LibXML is an example. |
| 20 |
# Unfortunately for Ubuntu 22.04 and earlier (and likely other Linux |
| 21 |
# distributions), the later versions are not available from the standard |
| 22 |
# repositories. In addition, attempting to install the current version |
| 23 |
# of XML::LibXML from CPAN for those operating systems fails with many |
| 24 |
# errors during "make test". Decision was made to use SKIP rather than |
| 25 |
# having users run cpan or cpanm with the no test option. |
| 26 |
|
| 27 |
SKIP: { |
| 28 |
skip "XML::LibXML version not > 2.0207", |
| 29 |
1 if ($XML::LibXML::VERSION <= 2.0207); |
| 30 |
ok(! exists $INC{'Data/Dumper.pm'}, "Data::Dumper should not be loaded"); |
| 31 |
} |
| 32 |
|