Sha256: 8d7a0ac748c22c21f0ca5273c393d74a779ac98cde304fee0d34f2f389367393

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

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

describe "Digest::SHA512#hexdigest!" do

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

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

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