Sha256: 4c259cfccfd4dbaf30791043b0fb8223f2d8a14748433d772288bda3fbc6c00e

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

require_relative 'spec_helper'

describe PDFium::ImageList do

    let(:image_doc){  load_document("example_images").page_at(0) }
    let(:blank_page){ load_document("example_utf8").page_at(0)   }

    it "can be empty" do
        assert blank_page.images.none?, "images found where there should not be"
    end

    it "can iterate" do
        count = 0
        image_doc.images.each{|i| count+=1 }
        assert_equal 26, count
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pdfium-0.0.2 test/image_list_spec.rb
pdfium-0.0.1 test/image_list_spec.rb