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