File: crc16_ccitt_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 (10 lines) | stat: -rw-r--r-- 203 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
require 'spec_helper'
require 'crc_examples'
require 'digest/crc16_ccitt'

describe Digest::CRC16CCITT do
  let(:string)   { '1234567890' }
  let(:expected) { '3218' }

  it_should_behave_like "CRC"
end