Sha256: 56ab87e920b9d26d350e6f9be7e0a9ce07e1e23d06a8dad368adb763f076fc95

Contents?: true

Size: 614 Bytes

Versions: 5

Compression:

Stored size: 614 Bytes

Contents

# coding: utf-8
require_relative '../spreadsheet'
# 计算
describe 'Sheet2' do
  def sheet2; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet2; end

  it 'cell e4 should equal 270.0' do
    sheet2.e4.should be_within(27.0).of(270.0)
  end

  it 'cell e5 should equal 210.0' do
    sheet2.e5.should be_within(21.0).of(210.0)
  end

  it 'cell e6 should equal 160.0' do
    sheet2.e6.should be_within(16.0).of(160.0)
  end

  it 'cell d7 should equal 300.0' do
    sheet2.d7.should be_within(30.0).of(300.0)
  end

  it 'cell e7 should equal 640.0' do
    sheet2.e7.should be_within(64.0).of(640.0)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 examples/ruby-versions/example-ruby/specs/sheet2_rspec.rb
rubyfromexcel-0.0.22 examples/ruby-versions/example-ruby/specs/sheet2_rspec.rb
rubyfromexcel-0.0.21 examples/ruby-versions/example-ruby/specs/sheet2_rspec.rb
rubyfromexcel-0.0.20 examples/ruby-versions/example-ruby/specs/sheet2_rspec.rb
rubyfromexcel-0.0.19 examples/ruby-versions/example-ruby/specs/sheet2_rspec.rb