Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jul 5, 2009
1 parent b6f352d commit a0f78a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/01-elf-libs.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ for my $file (@files) {
my $yaml = file( $file . '.yaml' );
my $data = YAML::XS::LoadFile( $yaml->stringify );
my $scanner = ELF::Extract::Sections->new( file => $f );
my $d = {};
for ( values %{ $scanner->sections } ){
$d->{$_->name} = {
size => $_->size,
my $d = {};
for ( values %{ $scanner->sections } ) {
$d->{ $_->name } = {
size => $_->size,
offset => $_->offset,
};
}
is_deeply( $d, $data, "Analysis of ". $f->basename . " matches stored data in " . $yaml->basename );
is_deeply( $d, $data, "Analysis of " . $f->basename . " matches stored data in " . $yaml->basename );
}

0 comments on commit a0f78a3

Please sign in to comment.