Sha256: 53d5e980a273c65e5220cf09642627b5c6ba8369189115790212d4d428ede27c

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

require 'spec_helper'
require 'straightedge/extend/array'
require 'straightedge/ruler'

describe Straightedge::Ruler do
  let(:a) { [0,3] }
  let(:b) { [4,0] }
  it 'should measure distance' do
    expect(Straightedge::Ruler.distance(a,b)).to eql(5.0)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-0.1.0 spec/straightedge/ruler_spec.rb