Sha256: 598e7f2b87af2c7ae7eb673d30f403183bb21fbfe32459322380276f0f9e81d9

Contents?: true

Size: 395 Bytes

Versions: 9

Compression:

Stored size: 395 Bytes

Contents

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

describe "Digest::SHA256#reset" do

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

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