Sha256: 16bcc628839ffea3e1099b1af554e66d15e62f48ac526e8d428408e4d27e59b3

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

sample("Steganography_original.png") do |fname|
  describe fname do
    it "extracts hidden image" do
      tname = "tmp/mask.tmp.png"
      File.unlink(tname) if File.exist?(tname)
      cli(ZSteg::MaskCLI, fname, "-m 00000011 -O #{tname}")
      img1 = ZPNG::Image.load tname
      img2 = ZPNG::Image.load fname.sub(/\.png$/,".00000011.png")
      img1.should == img2
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zsteg-0.0.1 spec/mask_spec.rb