Sha256: 0505dc88e14afe0ccb88f13be09afd9ea03748958874a2b4225649965fb60db0

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../lib/pedump')

describe 'a PE file with 65535 sections' do
  before :all do
    fname = File.expand_path(File.dirname(__FILE__) + '/../samples/65535sects.exe')
    File.open(fname,"rb") do |f|
      @pedump = PEdump.new(fname)
      @sections = @pedump.sections(f)
    end
  end

  it "should have 65535 sections" do
    @sections.size.should == 65535
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pedump-0.4.2 spec/65535sects_spec.rb
pedump-0.4.1 spec/65535sects_spec.rb