Sha256: 43a3642cf259d425f488021f257b1745fb0bdc32e3eb5c81552a9f12a0ad33af

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

require 'spec_helper'
require 'digest/crc'

describe Digest::CRC do
  it "should define block_length of 1" do
    crc = subject

    crc.block_length.should == 1
  end

  it "should pack to an empty String by default" do
    described_class.pack(0).should be_empty
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digest-crc-0.4.0 spec/crc_spec.rb
digest-crc-0.3.0 spec/crc_spec.rb