Sha256: 769d32c7c5d51dacf4f1eb202b3c9ccdf79d681ea0fbdd9d7d8fcb3fbf7098f7

Contents?: true

Size: 325 Bytes

Versions: 9

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'

describe String do
  it 'generate_kmers should generate kmers for a string' do
    'test'.to_kmers(2).should == ['te', 'es', 'st']
    'test'.to_kmers(3).should == ['tes', 'est']
    'test'.to_kmers(4).should == ['test']
    'test'.to_kmers(5).should == []
    'test'.to_kmers(0).should == []
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lederhosen-0.1.6 spec/misc_spec.rb
lederhosen-0.1.5 spec/misc_spec.rb
lederhosen-0.1.4 spec/misc_spec.rb
lederhosen-0.1.3 spec/misc_spec.rb
lederhosen-0.1.2 spec/misc_spec.rb
lederhosen-0.1.1 spec/misc_spec.rb
lederhosen-0.1.0 spec/misc_spec.rb
lederhosen-0.0.11 spec/misc_spec.rb
lederhosen-0.0.10 spec/misc_spec.rb