fixed manifest with tests
[DataExtract-FixedWidth.git] / t / 06-BadConstructor.t
blobf48f4c8a00fc5358aa6a9214a613e49c51f5d939
1 #!/usr/bin/env perl
2 use strict;
3 use warnings;
4 use feature ':5.10';
6 use Test::More tests => 2;
7 use DataExtract::FixedWidth;
10 eval {
11 my $de = DataExtract::FixedWidth->new({
12 cols => [qw/foo bar baz/]
13 });
15 like ( $@, qr/You must.*header_row/, 'cols only');
16 undef $@;
20 eval {
21 my $de = DataExtract::FixedWidth->new;
23 say "bar $@";
24 like ( $@, qr/You must/, 'nothing only');