Sha256: 05f0d2bf7e02b6a7e00f7af4c60256d9e0c99fb97b0d3aa3fced9f35ef341bb8
Contents?: true
Size: 243 Bytes
Versions: 2
Compression:
Stored size: 243 Bytes
Contents
require 'spec_helper' include Huff describe FrequencyMeter do it 'count symbols' do symbols = "aaábbb\n" subject = FrequencyMeter.new(symbols) expect(subject.frequency).to eq [[1, "\n"], [1, 'á'], [2, 'a'], [3, 'b']] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
huff-0.0.2 | spec/lib/huff/frequency_meter_spec.rb |
huff-0.0.1 | spec/lib/huff/frequency_meter_spec.rb |