Sha256: 69b8b8797b1c5008c9fbb9a2857f8ddf28cfac088a1cd156b5d1195881a55dc0
Contents?: true
Size: 956 Bytes
Versions: 12
Compression:
Stored size: 956 Bytes
Contents
# coding: utf-8 require_relative '../spreadsheet' # Sheet1 describe 'Sheet1' do def sheet1; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet1; end it 'cell a2 should equal 2.0' do sheet1.a2.should be_within(0.2).of(2.0) end it 'cell a3 should equal 4.0' do sheet1.a3.should be_within(0.4).of(4.0) end it 'cell a4 should equal 8.0' do sheet1.a4.should be_within(0.8).of(8.0) end it 'cell a5 should equal 16.0' do sheet1.a5.should be_within(1.6).of(16.0) end it 'cell a6 should equal 32.0' do sheet1.a6.should be_within(3.2).of(32.0) end it 'cell a7 should equal 64.0' do sheet1.a7.should be_within(6.4).of(64.0) end it 'cell a8 should equal 128.0' do sheet1.a8.should be_within(12.8).of(128.0) end it 'cell a9 should equal 256.0' do sheet1.a9.should be_within(25.6).of(256.0) end it 'cell a10 should equal 512.0' do sheet1.a10.should be_within(51.2).of(512.0) end end
Version data entries
12 entries across 12 versions & 1 rubygems