Sha256: a739663886a2f831e1bc51856eb9e5acaad3e1f07dfeae9349527bd5dcbac40c

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'spec_helper'

describe TTY::Text, '#distance' do
  let(:strings) { ['witch', 'which'] }

  subject { described_class.distance(*strings) }

  it { should == 2 }
end # distance

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-0.0.11 spec/tty/text/distance_spec.rb
tty-0.0.10 spec/tty/text/distance_spec.rb
tty-0.0.9 spec/tty/text/distance_spec.rb