Sha256: 75066be5924a4df6a63a22d2b4afd9cea28687ec1f6b3bd5da3a3956e28e080d

Contents?: true

Size: 242 Bytes

Versions: 15

Compression:

Stored size: 242 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)+"/spec_helper.rb")
describe Rubyvis::Scale do
  it "should return a correct numeric interpolator" do
    i=Rubyvis::Scale.interpolator(0,20)
    i[10].should==200
    i[20].should==400
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rubyvis-0.6.1 spec/scale_spec.rb
rubyvis-0.6.0 spec/scale_spec.rb
rubyvis-0.5.2 spec/scale_spec.rb
rubyvis-0.5.1 spec/scale_spec.rb
rubyvis-0.5.0 spec/scale_spec.rb
rubyvis-0.4.1 spec/scale_spec.rb
rubyvis-0.4.0 spec/scale_spec.rb
rubyvis-0.3.6 spec/scale_spec.rb
rubyvis-0.3.5 spec/scale_spec.rb
rubyvis-0.3.4 spec/scale_spec.rb
rubyvis-0.3.3 spec/scale_spec.rb
rubyvis-0.3.2 spec/scale_spec.rb
rubyvis-0.3.1 spec/scale_spec.rb
rubyvis-0.3.0 spec/scale_spec.rb
rubyvis-0.2.2 spec/scale_spec.rb