Sha256: 6b4f803fdd0ffdd9e09b4ad601c9c6a68857cba06023801750d416047d059431

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

describe :sha512_length, :shared => true do
  it "returns the length of the digest" do
    cur_digest = Digest::SHA512.new
    cur_digest.send(@method).should == SHA512Constants::BlankDigest.size
    cur_digest << SHA512Constants::Contents
    cur_digest.send(@method).should == SHA512Constants::Digest.size
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysl-digest-2.1 spec/sha512/shared/length.rb
rubysl-digest-1.2.0 spec/sha512/shared/length.rb
rubysl-digest-1.1.0 spec/sha512/shared/length.rb
rubysl-digest-2.0.8 spec/sha512/shared/length.rb
rubysl-digest-2.0.7 spec/sha512/shared/length.rb
rubysl-digest-1.0.1 spec/sha512/shared/length.rb
rubysl-digest-2.0.3 spec/sha512/shared/length.rb
rubysl-digest-1.0.0 spec/sha512/shared/length.rb
rubysl-digest-2.0.2 spec/sha512/shared/length.rb