Sha256: c6b6a4ea2d0cbbecea1439a8eb14b0ca7e53115773b3faee6a0022fac28ce2b9

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

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

describe "Digest::SHA256#hexdigest!" do

  it "returns a hexdigest and resets the state" do
    cur_digest = Digest::SHA256.new

    cur_digest << SHA256Constants::Contents
    cur_digest.hexdigest!.should == SHA256Constants::Hexdigest
    cur_digest.hexdigest.should == SHA256Constants::BlankHexdigest
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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