# coding: utf-8 require_relative '../spreadsheet' # OLD UK describe 'Sheet2' do def sheet2; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet2; end it 'cell d5 should equal 160.40945' do sheet2.d5.should be_within(16.040945).of(160.40945) end it 'cell e5 should equal 157.61832557' do sheet2.e5.should be_within(15.761832557).of(157.61832557) end it 'cell f5 should equal 154.87576670508201' do sheet2.f5.should be_within(15.487576670508203).of(154.87576670508201) end it 'cell g5 should equal 152.1809283644136' do sheet2.g5.should be_within(15.218092836441361).of(152.1809283644136) end it 'cell h5 should equal 149.5329802108728' do sheet2.h5.should be_within(14.953298021087281).of(149.5329802108728) end it 'cell i5 should equal 146.93110635520364' do sheet2.i5.should be_within(14.693110635520364).of(146.93110635520364) end it 'cell j5 should equal 144.3745051046231' do sheet2.j5.should be_within(14.43745051046231).of(144.3745051046231) end it 'cell c6 should equal 134.16697500000004' do sheet2.c6.should be_within(13.416697500000005).of(134.16697500000004) end it 'cell d6 should equal 131.83246963500005' do sheet2.d6.should be_within(13.183246963500006).of(131.83246963500005) end it 'cell e6 should equal 129.53858466335103' do sheet2.e6.should be_within(12.953858466335104).of(129.53858466335103) end it 'cell f6 should equal 127.28461329020871' do sheet2.f6.should be_within(12.728461329020872).of(127.28461329020871) end it 'cell g6 should equal 125.06986101895905' do sheet2.g6.should be_within(12.506986101895905).of(125.06986101895905) end it 'cell h6 should equal 122.89364543722914' do sheet2.h6.should be_within(12.289364543722915).of(122.89364543722914) end it 'cell i6 should equal 120.75529600662136' do sheet2.i6.should be_within(12.075529600662136).of(120.75529600662136) end it 'cell j6 should equal 118.65415385610618' do sheet2.j6.should be_within(11.865415385610618).of(118.65415385610618) end it 'cell l6 should equal 0.017400000000000082' do sheet2.l6.should be_within(0.0017400000000000083).of(0.017400000000000082) end it 'cell c7 should equal 297.41697500000004' do sheet2.c7.should be_within(29.741697500000004).of(297.41697500000004) end it 'cell d7 should equal 292.24191963500004' do sheet2.d7.should be_within(29.224191963500004).of(292.24191963500004) end it 'cell e7 should equal 287.156910233351' do sheet2.e7.should be_within(28.715691023335104).of(287.156910233351) end it 'cell f7 should equal 282.1603799952907' do sheet2.f7.should be_within(28.216037999529075).of(282.1603799952907) end it 'cell g7 should equal 277.25078938337265' do sheet2.g7.should be_within(27.725078938337266).of(277.25078938337265) end it 'cell h7 should equal 272.42662564810195' do sheet2.h7.should be_within(27.242662564810196).of(272.42662564810195) end it 'cell i7 should equal 267.686402361825' do sheet2.i7.should be_within(26.768640236182502).of(267.686402361825) end it 'cell j7 should equal 263.0286589607293' do sheet2.j7.should be_within(26.30286589607293).of(263.0286589607293) end it 'cell c9 should equal 2013.0' do sheet2.c9.should be_within(201.3).of(2013.0) end it 'cell d9 should equal 2014.0' do sheet2.d9.should be_within(201.4).of(2014.0) end it 'cell e9 should equal 2015.0' do sheet2.e9.should be_within(201.5).of(2015.0) end it 'cell f9 should equal 2016.0' do sheet2.f9.should be_within(201.60000000000002).of(2016.0) end it 'cell g9 should equal 2017.0' do sheet2.g9.should be_within(201.70000000000002).of(2017.0) end it 'cell h9 should equal 2018.0' do sheet2.h9.should be_within(201.8).of(2018.0) end it 'cell i9 should equal 2019.0' do sheet2.i9.should be_within(201.9).of(2019.0) end it 'cell j9 should equal 2020.0' do sheet2.j9.should be_within(202.0).of(2020.0) end it 'cell d10 should equal 1.0' do sheet2.d10.should be_within(0.1).of(1.0) end it 'cell e10 should equal 1.0' do sheet2.e10.should be_within(0.1).of(1.0) end it 'cell f10 should equal 1.0' do sheet2.f10.should be_within(0.1).of(1.0) end it 'cell g10 should equal 1.0' do sheet2.g10.should be_within(0.1).of(1.0) end it 'cell h10 should equal 1.0' do sheet2.h10.should be_within(0.1).of(1.0) end it 'cell i10 should equal 1.0' do sheet2.i10.should be_within(0.1).of(1.0) end it 'cell j10 should equal 1.0' do sheet2.j10.should be_within(0.1).of(1.0) end it 'cell d11 should equal 0.3142857142857143' do sheet2.d11.should be_within(0.03142857142857143).of(0.3142857142857143) end it 'cell e11 should equal 0.4285714285714286' do sheet2.e11.should be_within(0.042857142857142864).of(0.4285714285714286) end it 'cell f11 should equal 0.5428571428571429' do sheet2.f11.should be_within(0.0542857142857143).of(0.5428571428571429) end it 'cell g11 should equal 0.6571428571428573' do sheet2.g11.should be_within(0.06571428571428573).of(0.6571428571428573) end it 'cell h11 should equal 0.7714285714285716' do sheet2.h11.should be_within(0.07714285714285717).of(0.7714285714285716) end it 'cell i11 should equal 0.8857142857142859' do sheet2.i11.should be_within(0.08857142857142859).of(0.8857142857142859) end it 'cell l11 should equal 0.1142857142857143' do sheet2.l11.should be_within(0.01142857142857143).of(0.1142857142857143) end it 'cell c12 should equal 0.6391141426947805' do sheet2.c12.should be_within(0.06391141426947805).of(0.6391141426947805) end it 'cell d12 should equal 0.6906692651669547' do sheet2.d12.should be_within(0.06906692651669548).of(0.6906692651669547) end it 'cell e12 should equal 0.742224387639129' do sheet2.e12.should be_within(0.0742224387639129).of(0.742224387639129) end it 'cell f12 should equal 0.7937795101113032' do sheet2.f12.should be_within(0.07937795101113032).of(0.7937795101113032) end it 'cell g12 should equal 0.8453346325834775' do sheet2.g12.should be_within(0.08453346325834776).of(0.8453346325834775) end it 'cell h12 should equal 0.8968897550556517' do sheet2.h12.should be_within(0.08968897550556518).of(0.8968897550556517) end it 'cell i12 should equal 0.9484448775278258' do sheet2.i12.should be_within(0.09484448775278259).of(0.9484448775278258) end it 'cell j12 should equal 1.0' do sheet2.j12.should be_within(0.1).of(1.0) end it 'cell c14 should equal 2013.0' do sheet2.c14.should be_within(201.3).of(2013.0) end it 'cell d14 should equal 2014.0' do sheet2.d14.should be_within(201.4).of(2014.0) end it 'cell e14 should equal 2015.0' do sheet2.e14.should be_within(201.5).of(2015.0) end it 'cell f14 should equal 2016.0' do sheet2.f14.should be_within(201.60000000000002).of(2016.0) end it 'cell g14 should equal 2017.0' do sheet2.g14.should be_within(201.70000000000002).of(2017.0) end it 'cell h14 should equal 2018.0' do sheet2.h14.should be_within(201.8).of(2018.0) end it 'cell i14 should equal 2019.0' do sheet2.i14.should be_within(201.9).of(2019.0) end it 'cell j14 should equal 2020.0' do sheet2.j14.should be_within(202.0).of(2020.0) end it 'cell d15 should equal 20.0' do sheet2.d15.should be_within(2.0).of(20.0) end it 'cell e15 should equal 20.0' do sheet2.e15.should be_within(2.0).of(20.0) end it 'cell f15 should equal 20.0' do sheet2.f15.should be_within(2.0).of(20.0) end it 'cell g15 should equal 20.0' do sheet2.g15.should be_within(2.0).of(20.0) end it 'cell h15 should equal 20.0' do sheet2.h15.should be_within(2.0).of(20.0) end it 'cell i15 should equal 20.0' do sheet2.i15.should be_within(2.0).of(20.0) end it 'cell j15 should equal 20.0' do sheet2.j15.should be_within(2.0).of(20.0) end it 'cell c17 should equal 2013.0' do sheet2.c17.should be_within(201.3).of(2013.0) end it 'cell d17 should equal 2014.0' do sheet2.d17.should be_within(201.4).of(2014.0) end it 'cell e17 should equal 2015.0' do sheet2.e17.should be_within(201.5).of(2015.0) end it 'cell f17 should equal 2016.0' do sheet2.f17.should be_within(201.60000000000002).of(2016.0) end it 'cell g17 should equal 2017.0' do sheet2.g17.should be_within(201.70000000000002).of(2017.0) end it 'cell h17 should equal 2018.0' do sheet2.h17.should be_within(201.8).of(2018.0) end it 'cell i17 should equal 2019.0' do sheet2.i17.should be_within(201.9).of(2019.0) end it 'cell j17 should equal 2020.0' do sheet2.j17.should be_within(202.0).of(2020.0) end it 'cell c18 should equal 3.265' do sheet2.c18.should be_within(0.3265).of(3.265) end it 'cell d18 should equal 3.208189' do sheet2.d18.should be_within(0.3208189).of(3.208189) end it 'cell e18 should equal 3.1523665114' do sheet2.e18.should be_within(0.31523665114).of(3.1523665114) end it 'cell f18 should equal 3.09751533410164' do sheet2.f18.should be_within(0.30975153341016404).of(3.09751533410164) end it 'cell g18 should equal 3.043618567288272' do sheet2.g18.should be_within(0.3043618567288272).of(3.043618567288272) end it 'cell h18 should equal 2.990659604217456' do sheet2.h18.should be_within(0.2990659604217456).of(2.990659604217456) end it 'cell i18 should equal 2.9386221271040727' do sheet2.i18.should be_within(0.2938622127104073).of(2.9386221271040727) end it 'cell j18 should equal 2.8874901020924617' do sheet2.j18.should be_within(0.2887490102092462).of(2.8874901020924617) end it 'cell c19 should equal 0.5366679000000002' do sheet2.c19.should be_within(0.05366679000000002).of(0.5366679000000002) end it 'cell d19 should equal 0.8286612377057146' do sheet2.d19.should be_within(0.08286612377057147).of(0.8286612377057146) end it 'cell e19 should equal 1.110330725685866' do sheet2.e19.should be_within(0.11103307256858662).of(1.110330725685866) end it 'cell f19 should equal 1.3819472300079803' do sheet2.f19.should be_within(0.13819472300079802).of(1.3819472300079803) end it 'cell g19 should equal 1.6437753162491764' do sheet2.g19.should be_within(0.16437753162491764).of(1.6437753162491764) end it 'cell h19 should equal 1.8960733867458215' do sheet2.h19.should be_within(0.18960733867458215).of(1.8960733867458215) end it 'cell i19 should equal 2.1390938149744363' do sheet2.i19.should be_within(0.21390938149744365).of(2.1390938149744363) end it 'cell j19 should equal 2.3730830771221236' do sheet2.j19.should be_within(0.23730830771221237).of(2.3730830771221236) end it 'cell c20 should equal 3.8016679' do sheet2.c20.should be_within(0.38016679000000003).of(3.8016679) end it 'cell d20 should equal 4.036850237705714' do sheet2.d20.should be_within(0.4036850237705714).of(4.036850237705714) end it 'cell e20 should equal 4.262697237085867' do sheet2.e20.should be_within(0.4262697237085867).of(4.262697237085867) end it 'cell f20 should equal 4.479462564109621' do sheet2.f20.should be_within(0.44794625641096214).of(4.479462564109621) end it 'cell g20 should equal 4.687393883537449' do sheet2.g20.should be_within(0.4687393883537449).of(4.687393883537449) end it 'cell h20 should equal 4.886732990963277' do sheet2.h20.should be_within(0.48867329909632773).of(4.886732990963277) end it 'cell i20 should equal 5.077715942078508' do sheet2.i20.should be_within(0.5077715942078508).of(5.077715942078508) end it 'cell j20 should equal 5.260573179214585' do sheet2.j20.should be_within(0.5260573179214586).of(5.260573179214585) end end