File: crc_spec.rb

package info (click to toggle)
ruby-digest-crc 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: ruby: 427; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'
require 'digest/crc'

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

    expect(crc.block_length).to be 1
  end

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