10 |
use Data::Dumper; |
use Data::Dumper; |
11 |
use blib; |
use blib; |
12 |
|
|
13 |
my $debug = 1; |
my $debug = shift @ARGV; |
14 |
|
|
15 |
BEGIN { |
BEGIN { |
16 |
use_ok( 'WebPAC::Lookup' ); |
use_ok( 'WebPAC::Lookup' ); |
77 |
|
|
78 |
while (my $row = $isis->fetch) { |
while (my $row = $isis->fetch) { |
79 |
|
|
80 |
|
diag " row => ",Dumper($row) if ($debug); |
81 |
|
set_rec( $row ); |
82 |
|
|
83 |
ok(my $ds = $n->data_structure($row), "data_structure"); |
ok(my $ds = $n->data_structure($row), "data_structure"); |
84 |
|
|
85 |
diag " ds => ",Dumper($ds) if ($debug); |
diag " ds => ",Dumper($ds) if ($debug); |
88 |
{ |
{ |
89 |
no strict 'subs'; |
no strict 'subs'; |
90 |
use WebPAC::Normalize::Set; |
use WebPAC::Normalize::Set; |
91 |
diag " row => ",Dumper($row) if ($debug); |
diag " lookup => ",Dumper($lookup) if ($debug); |
92 |
set_rec( $row ); |
set_lookup( $lookup->lookup_hash ); |
|
#diag " lookup => ",Dumper($lookup) if ($debug); |
|
|
#set_lookup( $lookup ); |
|
93 |
clean_ds(); |
clean_ds(); |
94 |
eval "$norm_pl"; |
eval "$norm_pl"; |
95 |
ok(! $@, $@ ? "error: $@" : "no error"); |
ok(! $@, $@ ? "error: $@" : "no error"); |