Sha256: f20298fc358c0bb05a5627f86fd764f99c1b028ec49acdef409e1f4fc989e67e

Contents?: true

Size: 395 Bytes

Versions: 9

Compression:

Stored size: 395 Bytes

Contents

require File.expand_path('../shared/constants', __FILE__)

describe "Digest::SHA512#reset" do

  it "returns digest state to initial conditions" do
    cur_digest = Digest::SHA512.new
    cur_digest.update SHA512Constants::Contents
    cur_digest.digest().should_not == SHA512Constants::BlankDigest
    cur_digest.reset
    cur_digest.digest().should == SHA512Constants::BlankDigest
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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