Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import of HMBRAND/Text-CSV_XS-0.67 from CPAN.
gitpan-cpan-distribution: Text-CSV_XS gitpan-cpan-version: 0.67 gitpan-cpan-path: HMBRAND/Text-CSV_XS-0.67.tgz gitpan-cpan-author: HMBRAND gitpan-cpan-maturity: released
- Loading branch information
H.Merijn Brand
authored and
Gitpan
committed
Oct 22, 2014
1 parent
3e34cc2
commit c436091
Showing
8 changed files
with
57 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/perl | ||
|
||
package Text::CSV_XS::Subclass; | ||
|
||
BEGIN { require Text::CSV_XS; } # needed for perl5.005 | ||
|
||
use strict; | ||
$^W = 1; | ||
$| = 1; | ||
|
||
use base "Text::CSV_XS"; | ||
|
||
use Test::More tests => 5; | ||
|
||
ok (1, "Subclassed"); | ||
|
||
my $csvs = Text::CSV_XS::Subclass->new (); | ||
is ($csvs->error_diag (), "", "Last failure for new () - OK"); | ||
|
||
my $sc_csv; | ||
eval { $sc_csv = Text::CSV_XS::Subclass->new ({ ecs_char => ":" }); }; | ||
is ($sc_csv, undef, "Unsupported option"); | ||
is ($@, "", "error"); | ||
|
||
is (Text::CSV_XS::Subclass->error_diag (), | ||
"INI - Unknown attribute 'ecs_char'", "Last failure for new () - FAIL"); | ||
|
||
1; |