-ok(my $l = $parser->{_lookup_create}, "_lookup_create");
-diag "_lookup_create = ",dump($l);
+ok(my $l = $parser->{_lookup_create_key}, "_lookup_create_key");
+ok($parser->{_lookup_create}, "_lookup_create");
+diag "_lookup_create_key = ",dump($l) if ($debug);
+foreach my $db (keys %$l) {
+ foreach my $i (keys %{$l->{$db}}) {
+ ok(defined($parser->lookup_create_rules($db,$i)), "lookup_create_rules($db/$i)");
+ my @keys = sort keys %{$l->{$db}->{$i}};
+ ok(@keys, 'have keys');
+ my @have_keys = sort $parser->have_lookup_create($db,$i);
+ ok(@have_keys, 'have_lookup_create');
+ ok(eq_array(\@have_keys, \@keys), "found all lookups");
+ }
+}