rubyfromexcel 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/examples/checkpoints/checkpoint/checkpoint0.marshal +0 -0
  2. data/examples/checkpoints/checkpoint/checkpoint1.marshal +0 -0
  3. data/examples/checkpoints/checkpoint/checkpoint2.marshal +0 -0
  4. data/examples/checkpoints/checkpoint/checkpoint3.marshal +0 -0
  5. data/examples/checkpoints/checkpoint/checkpoint4.marshal +0 -0
  6. data/examples/checkpoints/checkpoint/checkpoint5.marshal +0 -0
  7. data/examples/ruby-versions/array-formulas-ruby/sheets/sheet1.rb +59 -0
  8. data/examples/ruby-versions/array-formulas-ruby/sheets/sheet2.rb +9 -0
  9. data/examples/ruby-versions/array-formulas-ruby/specs/sheet1_rspec.rb +156 -0
  10. data/examples/ruby-versions/array-formulas-ruby/specs/sheet2_rspec.rb +8 -0
  11. data/examples/ruby-versions/array-formulas-ruby/spreadsheet.rb +9 -0
  12. data/examples/ruby-versions/checkpoint-ruby/sheets/sheet1.rb +307 -0
  13. data/examples/ruby-versions/checkpoint-ruby/sheets/sheet2.rb +148 -0
  14. data/examples/ruby-versions/checkpoint-ruby/specs/sheet1_rspec.rb +884 -0
  15. data/examples/ruby-versions/checkpoint-ruby/specs/sheet2_rspec.rb +412 -0
  16. data/examples/ruby-versions/checkpoint-ruby/spreadsheet.rb +9 -0
  17. data/examples/ruby-versions/complex-test-ruby/sheets/sheet1.rb +305 -0
  18. data/examples/ruby-versions/complex-test-ruby/sheets/sheet2.rb +147 -0
  19. data/examples/ruby-versions/complex-test-ruby/specs/sheet1_rspec.rb +876 -0
  20. data/examples/ruby-versions/complex-test-ruby/specs/sheet2_rspec.rb +412 -0
  21. data/examples/ruby-versions/complex-test-ruby/spreadsheet.rb +9 -0
  22. data/examples/ruby-versions/namedReferenceTest-ruby/sheets/sheet1.rb +9 -0
  23. data/examples/ruby-versions/namedReferenceTest-ruby/sheets/sheet2.rb +8 -0
  24. data/examples/ruby-versions/namedReferenceTest-ruby/specs/sheet1_rspec.rb +16 -0
  25. data/examples/ruby-versions/namedReferenceTest-ruby/specs/sheet2_rspec.rb +16 -0
  26. data/examples/ruby-versions/namedReferenceTest-ruby/spreadsheet.rb +9 -0
  27. data/examples/ruby-versions/pruning-ruby/sheets/sheet1.rb +18 -0
  28. data/examples/ruby-versions/pruning-ruby/sheets/sheet2.rb +16 -0
  29. data/examples/ruby-versions/pruning-ruby/sheets/sheet3.rb +7 -0
  30. data/examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb +28 -0
  31. data/examples/ruby-versions/pruning-ruby/specs/sheet2_rspec.rb +28 -0
  32. data/examples/ruby-versions/pruning-ruby/specs/sheet3_rspec.rb +8 -0
  33. data/examples/ruby-versions/pruning-ruby/spreadsheet.rb +9 -0
  34. data/examples/ruby-versions/sharedFormulaTest-ruby/sheets/sheet1.rb +15 -0
  35. data/examples/ruby-versions/sharedFormulaTest-ruby/specs/sheet1_rspec.rb +44 -0
  36. data/examples/ruby-versions/sharedFormulaTest-ruby/spreadsheet.rb +9 -0
  37. data/examples/ruby-versions/table-test-ruby/sheets/sheet1.rb +17 -0
  38. data/examples/ruby-versions/table-test-ruby/sheets/sheet2.rb +5 -0
  39. data/examples/ruby-versions/table-test-ruby/sheets/sheet3.rb +5 -0
  40. data/examples/ruby-versions/table-test-ruby/specs/sheet1_rspec.rb +20 -0
  41. data/examples/ruby-versions/table-test-ruby/specs/sheet2_rspec.rb +8 -0
  42. data/examples/ruby-versions/table-test-ruby/specs/sheet3_rspec.rb +8 -0
  43. data/examples/ruby-versions/table-test-ruby/spreadsheet.rb +9 -0
  44. data/examples/sheets/2050Model.xlsx +0 -0
  45. data/examples/unzipped-sheets/array-formulas/[Content_Types].xml +2 -0
  46. data/examples/unzipped-sheets/array-formulas/docProps/app.xml +2 -0
  47. data/examples/unzipped-sheets/array-formulas/docProps/core.xml +2 -0
  48. data/examples/unzipped-sheets/array-formulas/docProps/thumbnail.jpeg +0 -0
  49. data/examples/unzipped-sheets/array-formulas/xl/_rels/workbook.xml.rels +2 -0
  50. data/examples/unzipped-sheets/array-formulas/xl/calcChain.xml +2 -0
  51. data/examples/unzipped-sheets/array-formulas/xl/sharedStrings.xml +2 -0
  52. data/examples/unzipped-sheets/array-formulas/xl/styles.xml +2 -0
  53. data/examples/unzipped-sheets/array-formulas/xl/theme/theme1.xml +2 -0
  54. data/examples/unzipped-sheets/array-formulas/xl/workbook.xml +2 -0
  55. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet1.xml +2 -0
  56. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet2.xml +2 -0
  57. data/examples/unzipped-sheets/checkpoint/[Content_Types].xml +2 -0
  58. data/examples/unzipped-sheets/checkpoint/docProps/app.xml +2 -0
  59. data/examples/unzipped-sheets/checkpoint/docProps/core.xml +2 -0
  60. data/examples/unzipped-sheets/checkpoint/xl/_rels/workbook.xml.rels +2 -0
  61. data/examples/unzipped-sheets/checkpoint/xl/calcChain.xml +2 -0
  62. data/examples/unzipped-sheets/checkpoint/xl/charts/chart1.xml +2 -0
  63. data/examples/unzipped-sheets/checkpoint/xl/charts/chart2.xml +2 -0
  64. data/examples/unzipped-sheets/checkpoint/xl/comments1.xml +5 -0
  65. data/examples/unzipped-sheets/checkpoint/xl/comments2.xml +5 -0
  66. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing1.xml.rels +2 -0
  67. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing2.xml.rels +2 -0
  68. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing1.xml +2 -0
  69. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing2.xml +2 -0
  70. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing1.vml +47 -0
  71. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing2.vml +47 -0
  72. data/examples/unzipped-sheets/checkpoint/xl/sharedStrings.xml +2 -0
  73. data/examples/unzipped-sheets/checkpoint/xl/styles.xml +2 -0
  74. data/examples/unzipped-sheets/checkpoint/xl/theme/theme1.xml +2 -0
  75. data/examples/unzipped-sheets/checkpoint/xl/workbook.xml +2 -0
  76. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  77. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  78. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet1.xml +2 -0
  79. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet2.xml +2 -0
  80. data/examples/unzipped-sheets/complex-test/[Content_Types].xml +2 -0
  81. data/examples/unzipped-sheets/complex-test/docProps/app.xml +2 -0
  82. data/examples/unzipped-sheets/complex-test/docProps/core.xml +2 -0
  83. data/examples/unzipped-sheets/complex-test/xl/_rels/workbook.xml.rels +2 -0
  84. data/examples/unzipped-sheets/complex-test/xl/calcChain.xml +2 -0
  85. data/examples/unzipped-sheets/complex-test/xl/charts/chart1.xml +2 -0
  86. data/examples/unzipped-sheets/complex-test/xl/charts/chart2.xml +2 -0
  87. data/examples/unzipped-sheets/complex-test/xl/comments1.xml +5 -0
  88. data/examples/unzipped-sheets/complex-test/xl/comments2.xml +5 -0
  89. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing1.xml.rels +2 -0
  90. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing2.xml.rels +2 -0
  91. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing1.xml +2 -0
  92. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing2.xml +2 -0
  93. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing1.vml +46 -0
  94. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing2.vml +46 -0
  95. data/examples/unzipped-sheets/complex-test/xl/sharedStrings.xml +2 -0
  96. data/examples/unzipped-sheets/complex-test/xl/styles.xml +2 -0
  97. data/examples/unzipped-sheets/complex-test/xl/theme/theme1.xml +2 -0
  98. data/examples/unzipped-sheets/complex-test/xl/workbook.xml +2 -0
  99. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  100. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  101. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet1.xml +2 -0
  102. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet2.xml +2 -0
  103. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet3.xml +2 -0
  104. data/examples/unzipped-sheets/namedReferenceTest/[Content_Types].xml +2 -0
  105. data/examples/unzipped-sheets/namedReferenceTest/docProps/app.xml +2 -0
  106. data/examples/unzipped-sheets/namedReferenceTest/docProps/core.xml +2 -0
  107. data/examples/unzipped-sheets/namedReferenceTest/docProps/thumbnail.jpeg +0 -0
  108. data/examples/unzipped-sheets/namedReferenceTest/xl/_rels/workbook.xml.rels +2 -0
  109. data/examples/unzipped-sheets/namedReferenceTest/xl/calcChain.xml +2 -0
  110. data/examples/unzipped-sheets/namedReferenceTest/xl/styles.xml +2 -0
  111. data/examples/unzipped-sheets/namedReferenceTest/xl/theme/theme1.xml +2 -0
  112. data/examples/unzipped-sheets/namedReferenceTest/xl/workbook.xml +2 -0
  113. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet1.xml +2 -0
  114. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet2.xml +2 -0
  115. data/examples/unzipped-sheets/pruning/[Content_Types].xml +2 -0
  116. data/examples/unzipped-sheets/pruning/docProps/app.xml +2 -0
  117. data/examples/unzipped-sheets/pruning/docProps/core.xml +2 -0
  118. data/examples/unzipped-sheets/pruning/docProps/thumbnail.jpeg +0 -0
  119. data/examples/unzipped-sheets/pruning/xl/_rels/workbook.xml.rels +2 -0
  120. data/examples/unzipped-sheets/pruning/xl/calcChain.xml +2 -0
  121. data/examples/unzipped-sheets/pruning/xl/sharedStrings.xml +2 -0
  122. data/examples/unzipped-sheets/pruning/xl/styles.xml +2 -0
  123. data/examples/unzipped-sheets/pruning/xl/tables/table1.xml +2 -0
  124. data/examples/unzipped-sheets/pruning/xl/theme/theme1.xml +2 -0
  125. data/examples/unzipped-sheets/pruning/xl/workbook.xml +2 -0
  126. data/examples/unzipped-sheets/pruning/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  127. data/examples/unzipped-sheets/pruning/xl/worksheets/sheet1.xml +2 -0
  128. data/examples/unzipped-sheets/pruning/xl/worksheets/sheet2.xml +2 -0
  129. data/examples/unzipped-sheets/pruning/xl/worksheets/sheet3.xml +2 -0
  130. data/examples/unzipped-sheets/sharedFormulaTest/[Content_Types].xml +2 -0
  131. data/examples/unzipped-sheets/sharedFormulaTest/docProps/app.xml +2 -0
  132. data/examples/unzipped-sheets/sharedFormulaTest/docProps/core.xml +2 -0
  133. data/examples/unzipped-sheets/sharedFormulaTest/docProps/thumbnail.jpeg +0 -0
  134. data/examples/unzipped-sheets/sharedFormulaTest/xl/_rels/workbook.xml.rels +2 -0
  135. data/examples/unzipped-sheets/sharedFormulaTest/xl/calcChain.xml +2 -0
  136. data/examples/unzipped-sheets/sharedFormulaTest/xl/styles.xml +2 -0
  137. data/examples/unzipped-sheets/sharedFormulaTest/xl/theme/theme1.xml +2 -0
  138. data/examples/unzipped-sheets/sharedFormulaTest/xl/workbook.xml +2 -0
  139. data/examples/unzipped-sheets/sharedFormulaTest/xl/worksheets/sheet1.xml +2 -0
  140. data/examples/unzipped-sheets/table-test/[Content_Types].xml +2 -0
  141. data/examples/unzipped-sheets/table-test/docProps/app.xml +2 -0
  142. data/examples/unzipped-sheets/table-test/docProps/core.xml +2 -0
  143. data/examples/unzipped-sheets/table-test/xl/_rels/workbook.xml.rels +2 -0
  144. data/examples/unzipped-sheets/table-test/xl/calcChain.xml +2 -0
  145. data/examples/unzipped-sheets/table-test/xl/printerSettings/printerSettings1.bin +0 -0
  146. data/examples/unzipped-sheets/table-test/xl/sharedStrings.xml +2 -0
  147. data/examples/unzipped-sheets/table-test/xl/styles.xml +2 -0
  148. data/examples/unzipped-sheets/table-test/xl/tables/table1.xml +2 -0
  149. data/examples/unzipped-sheets/table-test/xl/theme/theme1.xml +2 -0
  150. data/examples/unzipped-sheets/table-test/xl/workbook.xml +2 -0
  151. data/examples/unzipped-sheets/table-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  152. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet1.xml +2 -0
  153. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet2.xml +2 -0
  154. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet3.xml +2 -0
  155. data/lib/formulae/compile/formula_builder.rb +1 -0
  156. data/lib/formulae/parse/formula_peg.rb +3 -3
  157. data/lib/formulae/parse/formula_peg.txt +3 -3
  158. data/lib/formulae/run/excel_functions.rb +10 -3
  159. data/spec/excel_functions_spec.rb +21 -0
  160. data/spec/formula_peg_spec.rb +3 -0
  161. metadata +156 -3
@@ -0,0 +1,148 @@
1
+ # coding: utf-8
2
+ # OLD UK
3
+ class Sheet2 < Spreadsheet
4
+ def b2; "UK - Possible phase III auction revenues"; end
5
+ def b4; "Emissions"; end
6
+ def c4; 2013.0; end
7
+ def d4; 2014.0; end
8
+ def e4; 2015.0; end
9
+ def f4; 2016.0; end
10
+ def g4; 2017.0; end
11
+ def h4; 2018.0; end
12
+ def i4; 2019.0; end
13
+ def j4; 2020.0; end
14
+ def l4; "Change"; end
15
+ def b5; "Power sector"; end
16
+ def c5; 163.25; end
17
+ def d5; @d5 ||= c5*(1.0-l5); end
18
+ def e5; @e5 ||= d5*(1.0-l5); end
19
+ def f5; @f5 ||= e5*(1.0-l5); end
20
+ def g5; @g5 ||= f5*(1.0-l5); end
21
+ def h5; @h5 ||= g5*(1.0-l5); end
22
+ def i5; @i5 ||= h5*(1.0-l5); end
23
+ def j5; @j5 ||= i5*(1.0-l5); end
24
+ def k5; "mtCO2"; end
25
+ def l5; 0.0174; end
26
+ def b6; "Other"; end
27
+ def c6; @c6 ||= c7-c5; end
28
+ def d6; @d6 ||= d7-d5; end
29
+ def e6; @e6 ||= e7-e5; end
30
+ def f6; @f6 ||= f7-f5; end
31
+ def g6; @g6 ||= g7-g5; end
32
+ def h6; @h6 ||= h7-h5; end
33
+ def i6; @i6 ||= i7-i5; end
34
+ def j6; @j6 ||= j7-j5; end
35
+ def k6; "mtCO3"; end
36
+ def l6; @l6 ||= -((j6/c6)**(1.0/(j4-c4))-1.0); end
37
+ def b7; "Total"; end
38
+ def c7; @c7 ||= 278.35*(1.0+average(0.066,0.071)); end
39
+ def d7; @d7 ||= c7*(1.0-l7); end
40
+ def e7; @e7 ||= d7*(1.0-l7); end
41
+ def f7; @f7 ||= e7*(1.0-l7); end
42
+ def g7; @g7 ||= f7*(1.0-l7); end
43
+ def h7; @h7 ||= g7*(1.0-l7); end
44
+ def i7; @i7 ||= h7*(1.0-l7); end
45
+ def j7; @j7 ||= i7*(1.0-l7); end
46
+ def k7; "mtCO4"; end
47
+ def l7; 0.0174; end
48
+ def b9; "Proportion auctioned"; end
49
+ def c9; @c9 ||= c4; end
50
+ def d9; @d9 ||= d4; end
51
+ def e9; @e9 ||= e4; end
52
+ def f9; @f9 ||= f4; end
53
+ def g9; @g9 ||= g4; end
54
+ def h9; @h9 ||= h4; end
55
+ def i9; @i9 ||= i4; end
56
+ def j9; @j9 ||= j4; end
57
+ def b10; "Power sector"; end
58
+ def c10; 1.0; end
59
+ def d10; @d10 ||= c10; end
60
+ def e10; @e10 ||= d10; end
61
+ def f10; @f10 ||= e10; end
62
+ def g10; @g10 ||= f10; end
63
+ def h10; @h10 ||= g10; end
64
+ def i10; @i10 ||= h10; end
65
+ def j10; @j10 ||= i10; end
66
+ def k10; "%"; end
67
+ def b11; "Other"; end
68
+ def c11; 0.2; end
69
+ def d11; @d11 ||= c11+l11; end
70
+ def e11; @e11 ||= d11+l11; end
71
+ def f11; @f11 ||= e11+l11; end
72
+ def g11; @g11 ||= f11+l11; end
73
+ def h11; @h11 ||= g11+l11; end
74
+ def i11; @i11 ||= h11+l11; end
75
+ def j11; 1.0; end
76
+ def k11; "%"; end
77
+ def l11; @l11 ||= (j11-c11)/(j9-c9); end
78
+ def b12; "Total"; end
79
+ def c12; @c12 ||= ((c10*c5)+(c11*c6))/c7; end
80
+ def d12; @d12 ||= ((d10*d5)+(d11*d6))/d7; end
81
+ def e12; @e12 ||= ((e10*e5)+(e11*e6))/e7; end
82
+ def f12; @f12 ||= ((f10*f5)+(f11*f6))/f7; end
83
+ def g12; @g12 ||= ((g10*g5)+(g11*g6))/g7; end
84
+ def h12; @h12 ||= ((h10*h5)+(h11*h6))/h7; end
85
+ def i12; @i12 ||= ((i10*i5)+(i11*i6))/i7; end
86
+ def j12; @j12 ||= ((j10*j5)+(j11*j6))/j7; end
87
+ def k12; "%"; end
88
+ def c14; @c14 ||= c9; end
89
+ def d14; @d14 ||= d9; end
90
+ def e14; @e14 ||= e9; end
91
+ def f14; @f14 ||= f9; end
92
+ def g14; @g14 ||= g9; end
93
+ def h14; @h14 ||= h9; end
94
+ def i14; @i14 ||= i9; end
95
+ def j14; @j14 ||= j9; end
96
+ def b15; "CO2 price"; end
97
+ def c15; 20.0; end
98
+ def d15; @d15 ||= c15; end
99
+ def e15; @e15 ||= d15; end
100
+ def f15; @f15 ||= e15; end
101
+ def g15; @g15 ||= f15; end
102
+ def h15; @h15 ||= g15; end
103
+ def i15; @i15 ||= h15; end
104
+ def j15; @j15 ||= i15; end
105
+ def k15; "€/tCO2"; end
106
+ def b17; "Auction revenues"; end
107
+ def c17; @c17 ||= c9; end
108
+ def d17; @d17 ||= d9; end
109
+ def e17; @e17 ||= e9; end
110
+ def f17; @f17 ||= f9; end
111
+ def g17; @g17 ||= g9; end
112
+ def h17; @h17 ||= h9; end
113
+ def i17; @i17 ||= i9; end
114
+ def j17; @j17 ||= j9; end
115
+ def n17; 10.0; end
116
+ def b18; "Power sector"; end
117
+ def c18; @c18 ||= c10*c5*c15/1000.0; end
118
+ def d18; @d18 ||= d10*d5*d15/1000.0; end
119
+ def e18; @e18 ||= e10*e5*e15/1000.0; end
120
+ def f18; @f18 ||= f10*f5*f15/1000.0; end
121
+ def g18; @g18 ||= g10*g5*g15/1000.0; end
122
+ def h18; @h18 ||= h10*h5*h15/1000.0; end
123
+ def i18; @i18 ||= i10*i5*i15/1000.0; end
124
+ def j18; @j18 ||= j10*j5*j15/1000.0; end
125
+ def k18; "€bn"; end
126
+ def b19; "Other"; end
127
+ def c19; @c19 ||= c11*c6*c15/1000.0; end
128
+ def d19; @d19 ||= d11*d6*d15/1000.0; end
129
+ def e19; @e19 ||= e11*e6*e15/1000.0; end
130
+ def f19; @f19 ||= f11*f6*f15/1000.0; end
131
+ def g19; @g19 ||= g11*g6*g15/1000.0; end
132
+ def h19; @h19 ||= h11*h6*h15/1000.0; end
133
+ def i19; @i19 ||= i11*i6*i15/1000.0; end
134
+ def j19; @j19 ||= j11*j6*j15/1000.0; end
135
+ def k19; "€bn"; end
136
+ def b20; "Total"; end
137
+ def c20; @c20 ||= c12*c7*c15/1000.0; end
138
+ def d20; @d20 ||= d12*d7*d15/1000.0; end
139
+ def e20; @e20 ||= e12*e7*e15/1000.0; end
140
+ def f20; @f20 ||= f12*f7*f15/1000.0; end
141
+ def g20; @g20 ||= g12*g7*g15/1000.0; end
142
+ def h20; @h20 ||= h12*h7*h15/1000.0; end
143
+ def i20; @i20 ||= i12*i7*i15/1000.0; end
144
+ def j20; @j20 ||= j12*j7*j15/1000.0; end
145
+ def k20; "€bn"; end
146
+ def k22; " "; end
147
+ end
148
+
@@ -0,0 +1,884 @@
1
+ # coding: utf-8
2
+ require_relative '../spreadsheet'
3
+ # EU
4
+ describe 'Sheet1' do
5
+ def sheet1; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet1; end
6
+
7
+ it 'cell f5 should equal 1125.0' do
8
+ sheet1.f5.should be_within(112.5).of(1125.0)
9
+ end
10
+
11
+ it 'cell g5 should equal 1102.5' do
12
+ sheet1.g5.should be_within(110.25).of(1102.5)
13
+ end
14
+
15
+ it 'cell h5 should equal 1080.45' do
16
+ sheet1.h5.should be_within(108.04500000000002).of(1080.45)
17
+ end
18
+
19
+ it 'cell i5 should equal 1058.8410000000001' do
20
+ sheet1.i5.should be_within(105.88410000000002).of(1058.8410000000001)
21
+ end
22
+
23
+ it 'cell j5 should equal 1037.66418' do
24
+ sheet1.j5.should be_within(103.766418).of(1037.66418)
25
+ end
26
+
27
+ it 'cell k5 should equal 1016.9108964' do
28
+ sheet1.k5.should be_within(101.69108964).of(1016.9108964)
29
+ end
30
+
31
+ it 'cell l5 should equal 996.5726784719999' do
32
+ sheet1.l5.should be_within(99.65726784719999).of(996.5726784719999)
33
+ end
34
+
35
+ it 'cell m5 should equal 976.6412249025599' do
36
+ sheet1.m5.should be_within(97.66412249025599).of(976.6412249025599)
37
+ end
38
+
39
+ it 'cell f6 should equal 332.5' do
40
+ sheet1.f6.should be_within(33.25).of(332.5)
41
+ end
42
+
43
+ it 'cell g6 should equal 325.84999999999997' do
44
+ sheet1.g6.should be_within(32.585).of(325.84999999999997)
45
+ end
46
+
47
+ it 'cell h6 should equal 319.33299999999997' do
48
+ sheet1.h6.should be_within(31.9333).of(319.33299999999997)
49
+ end
50
+
51
+ it 'cell i6 should equal 312.94633999999996' do
52
+ sheet1.i6.should be_within(31.294634).of(312.94633999999996)
53
+ end
54
+
55
+ it 'cell j6 should equal 306.6874132' do
56
+ sheet1.j6.should be_within(30.66874132).of(306.6874132)
57
+ end
58
+
59
+ it 'cell k6 should equal 300.55366493599996' do
60
+ sheet1.k6.should be_within(30.055366493599998).of(300.55366493599996)
61
+ end
62
+
63
+ it 'cell l6 should equal 294.54259163727994' do
64
+ sheet1.l6.should be_within(29.454259163727997).of(294.54259163727994)
65
+ end
66
+
67
+ it 'cell m6 should equal 288.6517398045343' do
68
+ sheet1.m6.should be_within(28.865173980453434).of(288.6517398045343)
69
+ end
70
+
71
+ it 'cell f7 should equal 712.5' do
72
+ sheet1.f7.should be_within(71.25).of(712.5)
73
+ end
74
+
75
+ it 'cell g7 should equal 698.25' do
76
+ sheet1.g7.should be_within(69.825).of(698.25)
77
+ end
78
+
79
+ it 'cell h7 should equal 684.285' do
80
+ sheet1.h7.should be_within(68.4285).of(684.285)
81
+ end
82
+
83
+ it 'cell i7 should equal 670.5993' do
84
+ sheet1.i7.should be_within(67.05993).of(670.5993)
85
+ end
86
+
87
+ it 'cell j7 should equal 657.187314' do
88
+ sheet1.j7.should be_within(65.71873140000001).of(657.187314)
89
+ end
90
+
91
+ it 'cell k7 should equal 644.04356772' do
92
+ sheet1.k7.should be_within(64.40435677200001).of(644.04356772)
93
+ end
94
+
95
+ it 'cell l7 should equal 631.1626963656' do
96
+ sheet1.l7.should be_within(63.116269636560006).of(631.1626963656)
97
+ end
98
+
99
+ it 'cell m7 should equal 618.539442438288' do
100
+ sheet1.m7.should be_within(61.853944243828806).of(618.539442438288)
101
+ end
102
+
103
+ it 'cell f8 should equal 2170.0' do
104
+ sheet1.f8.should be_within(217.0).of(2170.0)
105
+ end
106
+
107
+ it 'cell g8 should equal 2126.6' do
108
+ sheet1.g8.should be_within(212.66).of(2126.6)
109
+ end
110
+
111
+ it 'cell h8 should equal 2084.0679999999998' do
112
+ sheet1.h8.should be_within(208.40679999999998).of(2084.0679999999998)
113
+ end
114
+
115
+ it 'cell i8 should equal 2042.3866400000002' do
116
+ sheet1.i8.should be_within(204.23866400000003).of(2042.3866400000002)
117
+ end
118
+
119
+ it 'cell j8 should equal 2001.5389072' do
120
+ sheet1.j8.should be_within(200.15389072000002).of(2001.5389072)
121
+ end
122
+
123
+ it 'cell k8 should equal 1961.508129056' do
124
+ sheet1.k8.should be_within(196.1508129056).of(1961.508129056)
125
+ end
126
+
127
+ it 'cell l8 should equal 1922.27796647488' do
128
+ sheet1.l8.should be_within(192.22779664748802).of(1922.27796647488)
129
+ end
130
+
131
+ it 'cell m8 should equal 1883.8324071453821' do
132
+ sheet1.m8.should be_within(188.38324071453823).of(1883.8324071453821)
133
+ end
134
+
135
+ it 'cell f10 should equal 2013.0' do
136
+ sheet1.f10.should be_within(201.3).of(2013.0)
137
+ end
138
+
139
+ it 'cell g10 should equal 2014.0' do
140
+ sheet1.g10.should be_within(201.4).of(2014.0)
141
+ end
142
+
143
+ it 'cell h10 should equal 2015.0' do
144
+ sheet1.h10.should be_within(201.5).of(2015.0)
145
+ end
146
+
147
+ it 'cell i10 should equal 2016.0' do
148
+ sheet1.i10.should be_within(201.60000000000002).of(2016.0)
149
+ end
150
+
151
+ it 'cell j10 should equal 2017.0' do
152
+ sheet1.j10.should be_within(201.70000000000002).of(2017.0)
153
+ end
154
+
155
+ it 'cell k10 should equal 2018.0' do
156
+ sheet1.k10.should be_within(201.8).of(2018.0)
157
+ end
158
+
159
+ it 'cell l10 should equal 2019.0' do
160
+ sheet1.l10.should be_within(201.9).of(2019.0)
161
+ end
162
+
163
+ it 'cell m10 should equal 2020.0' do
164
+ sheet1.m10.should be_within(202.0).of(2020.0)
165
+ end
166
+
167
+ it 'cell g11 should equal 0.0' do
168
+ sheet1.g11.should be_within(1.0e-08).of(0.0)
169
+ end
170
+
171
+ it 'cell h11 should equal 0.0' do
172
+ sheet1.h11.should be_within(1.0e-08).of(0.0)
173
+ end
174
+
175
+ it 'cell i11 should equal 0.0' do
176
+ sheet1.i11.should be_within(1.0e-08).of(0.0)
177
+ end
178
+
179
+ it 'cell j11 should equal 0.0' do
180
+ sheet1.j11.should be_within(1.0e-08).of(0.0)
181
+ end
182
+
183
+ it 'cell k11 should equal 0.0' do
184
+ sheet1.k11.should be_within(1.0e-08).of(0.0)
185
+ end
186
+
187
+ it 'cell l11 should equal 0.0' do
188
+ sheet1.l11.should be_within(1.0e-08).of(0.0)
189
+ end
190
+
191
+ it 'cell m11 should equal 0.0' do
192
+ sheet1.m11.should be_within(1.0e-08).of(0.0)
193
+ end
194
+
195
+ it 'cell b12 should equal "Leakage sectors"' do
196
+ sheet1.b12.should == "Leakage sectors"
197
+ end
198
+
199
+ it 'cell g12 should equal 0.875' do
200
+ sheet1.g12.should be_within(0.08750000000000001).of(0.875)
201
+ end
202
+
203
+ it 'cell h12 should equal 0.85' do
204
+ sheet1.h12.should be_within(0.085).of(0.85)
205
+ end
206
+
207
+ it 'cell i12 should equal 0.825' do
208
+ sheet1.i12.should be_within(0.0825).of(0.825)
209
+ end
210
+
211
+ it 'cell j12 should equal 0.7999999999999999' do
212
+ sheet1.j12.should be_within(0.08).of(0.7999999999999999)
213
+ end
214
+
215
+ it 'cell k12 should equal 0.7749999999999999' do
216
+ sheet1.k12.should be_within(0.0775).of(0.7749999999999999)
217
+ end
218
+
219
+ it 'cell l12 should equal 0.7499999999999999' do
220
+ sheet1.l12.should be_within(0.075).of(0.7499999999999999)
221
+ end
222
+
223
+ it 'cell m12 should equal 0.7249999999999999' do
224
+ sheet1.m12.should be_within(0.0725).of(0.7249999999999999)
225
+ end
226
+
227
+ it 'cell g13 should equal 0.6857142857142857' do
228
+ sheet1.g13.should be_within(0.06857142857142857).of(0.6857142857142857)
229
+ end
230
+
231
+ it 'cell h13 should equal 0.5714285714285714' do
232
+ sheet1.h13.should be_within(0.05714285714285714).of(0.5714285714285714)
233
+ end
234
+
235
+ it 'cell i13 should equal 0.4571428571428571' do
236
+ sheet1.i13.should be_within(0.04571428571428571).of(0.4571428571428571)
237
+ end
238
+
239
+ it 'cell j13 should equal 0.34285714285714275' do
240
+ sheet1.j13.should be_within(0.034285714285714274).of(0.34285714285714275)
241
+ end
242
+
243
+ it 'cell k13 should equal 0.22857142857142845' do
244
+ sheet1.k13.should be_within(0.022857142857142847).of(0.22857142857142845)
245
+ end
246
+
247
+ it 'cell l13 should equal 0.11428571428571416' do
248
+ sheet1.l13.should be_within(0.011428571428571416).of(0.11428571428571416)
249
+ end
250
+
251
+ it 'cell o13 should equal -0.1142857142857143' do
252
+ sheet1.o13.should be_within(0.01142857142857143).of(-0.1142857142857143)
253
+ end
254
+
255
+ it 'cell f14 should equal 0.8318181818181818' do
256
+ sheet1.f14.should be_within(0.08318181818181819).of(0.8318181818181818)
257
+ end
258
+
259
+ it 'cell g14 should equal 0.7459415584415585' do
260
+ sheet1.g14.should be_within(0.07459415584415585).of(0.7459415584415585)
261
+ end
262
+
263
+ it 'cell h14 should equal 0.660064935064935' do
264
+ sheet1.h14.should be_within(0.0660064935064935).of(0.660064935064935)
265
+ end
266
+
267
+ it 'cell i14 should equal 0.5741883116883116' do
268
+ sheet1.i14.should be_within(0.05741883116883117).of(0.5741883116883116)
269
+ end
270
+
271
+ it 'cell j14 should equal 0.4883116883116882' do
272
+ sheet1.j14.should be_within(0.04883116883116882).of(0.4883116883116882)
273
+ end
274
+
275
+ it 'cell k14 should equal 0.40243506493506487' do
276
+ sheet1.k14.should be_within(0.04024350649350649).of(0.40243506493506487)
277
+ end
278
+
279
+ it 'cell l14 should equal 0.3165584415584414' do
280
+ sheet1.l14.should be_within(0.03165584415584414).of(0.3165584415584414)
281
+ end
282
+
283
+ it 'cell m14 should equal 0.23068181818181807' do
284
+ sheet1.m14.should be_within(0.023068181818181807).of(0.23068181818181807)
285
+ end
286
+
287
+ it 'cell f15 should equal 0.40057603686635945' do
288
+ sheet1.f15.should be_within(0.04005760368663595).of(0.40057603686635945)
289
+ end
290
+
291
+ it 'cell g15 should equal 0.3592207044107966' do
292
+ sheet1.g15.should be_within(0.035922070441079666).of(0.3592207044107966)
293
+ end
294
+
295
+ it 'cell h15 should equal 0.31786537195523373' do
296
+ sheet1.h15.should be_within(0.03178653719552337).of(0.31786537195523373)
297
+ end
298
+
299
+ it 'cell i15 should equal 0.2765100394996708' do
300
+ sheet1.i15.should be_within(0.02765100394996708).of(0.2765100394996708)
301
+ end
302
+
303
+ it 'cell j15 should equal 0.23515470704410793' do
304
+ sheet1.j15.should be_within(0.023515470704410794).of(0.23515470704410793)
305
+ end
306
+
307
+ it 'cell k15 should equal 0.19379937458854504' do
308
+ sheet1.k15.should be_within(0.019379937458854506).of(0.19379937458854504)
309
+ end
310
+
311
+ it 'cell l15 should equal 0.15244404213298213' do
312
+ sheet1.l15.should be_within(0.015244404213298214).of(0.15244404213298213)
313
+ end
314
+
315
+ it 'cell m15 should equal 0.11108870967741932' do
316
+ sheet1.m15.should be_within(0.011108870967741933).of(0.11108870967741932)
317
+ end
318
+
319
+ it 'cell f17 should equal 0.1681818181818182' do
320
+ sheet1.f17.should be_within(0.016818181818181822).of(0.1681818181818182)
321
+ end
322
+
323
+ it 'cell g17 should equal 0.2540584415584415' do
324
+ sheet1.g17.should be_within(0.02540584415584415).of(0.2540584415584415)
325
+ end
326
+
327
+ it 'cell h17 should equal 0.339935064935065' do
328
+ sheet1.h17.should be_within(0.0339935064935065).of(0.339935064935065)
329
+ end
330
+
331
+ it 'cell i17 should equal 0.42581168831168836' do
332
+ sheet1.i17.should be_within(0.04258116883116884).of(0.42581168831168836)
333
+ end
334
+
335
+ it 'cell j17 should equal 0.5116883116883117' do
336
+ sheet1.j17.should be_within(0.051168831168831176).of(0.5116883116883117)
337
+ end
338
+
339
+ it 'cell k17 should equal 0.5975649350649351' do
340
+ sheet1.k17.should be_within(0.059756493506493515).of(0.5975649350649351)
341
+ end
342
+
343
+ it 'cell l17 should equal 0.6834415584415586' do
344
+ sheet1.l17.should be_within(0.06834415584415586).of(0.6834415584415586)
345
+ end
346
+
347
+ it 'cell m17 should equal 0.7693181818181819' do
348
+ sheet1.m17.should be_within(0.0769318181818182).of(0.7693181818181819)
349
+ end
350
+
351
+ it 'cell f18 should equal 2013.0' do
352
+ sheet1.f18.should be_within(201.3).of(2013.0)
353
+ end
354
+
355
+ it 'cell g18 should equal 2014.0' do
356
+ sheet1.g18.should be_within(201.4).of(2014.0)
357
+ end
358
+
359
+ it 'cell h18 should equal 2015.0' do
360
+ sheet1.h18.should be_within(201.5).of(2015.0)
361
+ end
362
+
363
+ it 'cell i18 should equal 2016.0' do
364
+ sheet1.i18.should be_within(201.60000000000002).of(2016.0)
365
+ end
366
+
367
+ it 'cell j18 should equal 2017.0' do
368
+ sheet1.j18.should be_within(201.70000000000002).of(2017.0)
369
+ end
370
+
371
+ it 'cell k18 should equal 2018.0' do
372
+ sheet1.k18.should be_within(201.8).of(2018.0)
373
+ end
374
+
375
+ it 'cell l18 should equal 2019.0' do
376
+ sheet1.l18.should be_within(201.9).of(2019.0)
377
+ end
378
+
379
+ it 'cell m18 should equal 2020.0' do
380
+ sheet1.m18.should be_within(202.0).of(2020.0)
381
+ end
382
+
383
+ it 'cell d19 should equal 2207.0' do
384
+ sheet1.d19.should be_within(220.70000000000002).of(2207.0)
385
+ end
386
+
387
+ it 'cell f19 should equal 2091.7946' do
388
+ sheet1.f19.should be_within(209.17946000000003).of(2091.7946)
389
+ end
390
+
391
+ it 'cell g19 should equal 2055.39737396' do
392
+ sheet1.g19.should be_within(205.53973739600002).of(2055.39737396)
393
+ end
394
+
395
+ it 'cell h19 should equal 2019.6334596530962' do
396
+ sheet1.h19.should be_within(201.96334596530963).of(2019.6334596530962)
397
+ end
398
+
399
+ it 'cell i19 should equal 1984.4918374551323' do
400
+ sheet1.i19.should be_within(198.44918374551324).of(1984.4918374551323)
401
+ end
402
+
403
+ it 'cell j19 should equal 1949.961679483413' do
404
+ sheet1.j19.should be_within(194.9961679483413).of(1949.961679483413)
405
+ end
406
+
407
+ it 'cell k19 should equal 1916.0323462604017' do
408
+ sheet1.k19.should be_within(191.60323462604018).of(1916.0323462604017)
409
+ end
410
+
411
+ it 'cell l19 should equal 1882.6933834354709' do
412
+ sheet1.l19.should be_within(188.2693383435471).of(1882.6933834354709)
413
+ end
414
+
415
+ it 'cell m19 should equal 1849.9345185636937' do
416
+ sheet1.m19.should be_within(184.99345185636938).of(1849.9345185636937)
417
+ end
418
+
419
+ it 'cell f20 should equal 848.7075677419355' do
420
+ sheet1.f20.should be_within(84.87075677419355).of(848.7075677419355)
421
+ end
422
+
423
+ it 'cell g20 should equal 763.1506248366406' do
424
+ sheet1.g20.should be_within(76.31506248366406).of(763.1506248366406)
425
+ end
426
+
427
+ it 'cell h20 should equal 677.1799459732' do
428
+ sheet1.h20.should be_within(67.71799459732).of(677.1799459732)
429
+ end
430
+
431
+ it 'cell i20 should equal 590.7938795210337' do
432
+ sheet1.i20.should be_within(59.07938795210337).of(590.7938795210337)
433
+ end
434
+
435
+ it 'cell j20 should equal 503.9907679979854' do
436
+ sheet1.j20.should be_within(50.39907679979854).of(503.9907679979854)
437
+ end
438
+
439
+ it 'cell k20 should equal 416.7689480508982' do
440
+ sheet1.k20.should be_within(41.67689480508982).of(416.7689480508982)
441
+ end
442
+
443
+ it 'cell l20 should equal 329.1267504361288' do
444
+ sheet1.l20.should be_within(32.912675043612886).of(329.1267504361288)
445
+ end
446
+
447
+ it 'cell m20 should equal 241.06249999999994' do
448
+ sheet1.m20.should be_within(24.106249999999996).of(241.06249999999994)
449
+ end
450
+
451
+ it 'cell f21 should equal 1243.0870322580647' do
452
+ sheet1.f21.should be_within(124.30870322580648).of(1243.0870322580647)
453
+ end
454
+
455
+ it 'cell g21 should equal 1292.2467491233595' do
456
+ sheet1.g21.should be_within(129.22467491233596).of(1292.2467491233595)
457
+ end
458
+
459
+ it 'cell h21 should equal 1342.4535136798963' do
460
+ sheet1.h21.should be_within(134.24535136798963).of(1342.4535136798963)
461
+ end
462
+
463
+ it 'cell i21 should equal 1393.6979579340987' do
464
+ sheet1.i21.should be_within(139.36979579340988).of(1393.6979579340987)
465
+ end
466
+
467
+ it 'cell j21 should equal 1445.9709114854277' do
468
+ sheet1.j21.should be_within(144.59709114854277).of(1445.9709114854277)
469
+ end
470
+
471
+ it 'cell k21 should equal 1499.2633982095035' do
472
+ sheet1.k21.should be_within(149.92633982095035).of(1499.2633982095035)
473
+ end
474
+
475
+ it 'cell l21 should equal 1553.5666329993421' do
476
+ sheet1.l21.should be_within(155.3566632999342).of(1553.5666329993421)
477
+ end
478
+
479
+ it 'cell m21 should equal 1608.8720185636937' do
480
+ sheet1.m21.should be_within(160.8872018563694).of(1608.8720185636937)
481
+ end
482
+
483
+ it 'cell f23 should equal 2013.0' do
484
+ sheet1.f23.should be_within(201.3).of(2013.0)
485
+ end
486
+
487
+ it 'cell g23 should equal 2014.0' do
488
+ sheet1.g23.should be_within(201.4).of(2014.0)
489
+ end
490
+
491
+ it 'cell h23 should equal 2015.0' do
492
+ sheet1.h23.should be_within(201.5).of(2015.0)
493
+ end
494
+
495
+ it 'cell i23 should equal 2016.0' do
496
+ sheet1.i23.should be_within(201.60000000000002).of(2016.0)
497
+ end
498
+
499
+ it 'cell j23 should equal 2017.0' do
500
+ sheet1.j23.should be_within(201.70000000000002).of(2017.0)
501
+ end
502
+
503
+ it 'cell k23 should equal 2018.0' do
504
+ sheet1.k23.should be_within(201.8).of(2018.0)
505
+ end
506
+
507
+ it 'cell l23 should equal 2019.0' do
508
+ sheet1.l23.should be_within(201.9).of(2019.0)
509
+ end
510
+
511
+ it 'cell m23 should equal 2020.0' do
512
+ sheet1.m23.should be_within(202.0).of(2020.0)
513
+ end
514
+
515
+ it 'cell g24 should equal 26.25' do
516
+ sheet1.g24.should be_within(2.625).of(26.25)
517
+ end
518
+
519
+ it 'cell h24 should equal 27.5625' do
520
+ sheet1.h24.should be_within(2.75625).of(27.5625)
521
+ end
522
+
523
+ it 'cell i24 should equal 28.940625' do
524
+ sheet1.i24.should be_within(2.8940625000000004).of(28.940625)
525
+ end
526
+
527
+ it 'cell j24 should equal 30.387656250000003' do
528
+ sheet1.j24.should be_within(3.0387656250000004).of(30.387656250000003)
529
+ end
530
+
531
+ it 'cell k24 should equal 31.907039062500004' do
532
+ sheet1.k24.should be_within(3.1907039062500004).of(31.907039062500004)
533
+ end
534
+
535
+ it 'cell l24 should equal 33.50239101562501' do
536
+ sheet1.l24.should be_within(3.350239101562501).of(33.50239101562501)
537
+ end
538
+
539
+ it 'cell m24 should equal 35.17751056640626' do
540
+ sheet1.m24.should be_within(3.5177510566406265).of(35.17751056640626)
541
+ end
542
+
543
+ it 'cell f25 should equal 31077.175806451618' do
544
+ sheet1.f25.should be_within(3107.717580645162).of(31077.175806451618)
545
+ end
546
+
547
+ it 'cell g25 should equal 33921.477164488184' do
548
+ sheet1.g25.should be_within(3392.1477164488188).of(33921.477164488184)
549
+ end
550
+
551
+ it 'cell h25 should equal 37001.37497080214' do
552
+ sheet1.h25.should be_within(3700.1374970802144).of(37001.37497080214)
553
+ end
554
+
555
+ it 'cell i25 should equal 40334.489963836524' do
556
+ sheet1.i25.should be_within(4033.4489963836527).of(40334.489963836524)
557
+ end
558
+
559
+ it 'cell j25 should equal 43939.66700571836' do
560
+ sheet1.j25.should be_within(4393.966700571836).of(43939.66700571836)
561
+ end
562
+
563
+ it 'cell k25 should equal 47837.05581164713' do
564
+ sheet1.k25.should be_within(4783.705581164713).of(47837.05581164713)
565
+ end
566
+
567
+ it 'cell l25 should equal 52048.196807571956' do
568
+ sheet1.l25.should be_within(5204.819680757196).of(52048.196807571956)
569
+ end
570
+
571
+ it 'cell m25 should equal 56596.112433019705' do
572
+ sheet1.m25.should be_within(5659.611243301971).of(56596.112433019705)
573
+ end
574
+
575
+ it 'cell f27 should equal 2013.0' do
576
+ sheet1.f27.should be_within(201.3).of(2013.0)
577
+ end
578
+
579
+ it 'cell g27 should equal 2014.0' do
580
+ sheet1.g27.should be_within(201.4).of(2014.0)
581
+ end
582
+
583
+ it 'cell h27 should equal 2015.0' do
584
+ sheet1.h27.should be_within(201.5).of(2015.0)
585
+ end
586
+
587
+ it 'cell i27 should equal 2016.0' do
588
+ sheet1.i27.should be_within(201.60000000000002).of(2016.0)
589
+ end
590
+
591
+ it 'cell j27 should equal 2017.0' do
592
+ sheet1.j27.should be_within(201.70000000000002).of(2017.0)
593
+ end
594
+
595
+ it 'cell k27 should equal 2018.0' do
596
+ sheet1.k27.should be_within(201.8).of(2018.0)
597
+ end
598
+
599
+ it 'cell l27 should equal 2019.0' do
600
+ sheet1.l27.should be_within(201.9).of(2019.0)
601
+ end
602
+
603
+ it 'cell m27 should equal 2020.0' do
604
+ sheet1.m27.should be_within(202.0).of(2020.0)
605
+ end
606
+
607
+ it 'cell o27 should equal 10.0' do
608
+ sheet1.o27.should be_within(1.0).of(10.0)
609
+ end
610
+
611
+ it 'cell f28 should equal 1084.4557258064517' do
612
+ sheet1.f28.should be_within(108.44557258064518).of(1084.4557258064517)
613
+ end
614
+
615
+ it 'cell g28 should equal 1065.5861961774194' do
616
+ sheet1.g28.should be_within(106.55861961774195).of(1065.5861961774194)
617
+ end
618
+
619
+ it 'cell h28 should equal 1047.0449963639326' do
620
+ sheet1.h28.should be_within(104.70449963639327).of(1047.0449963639326)
621
+ end
622
+
623
+ it 'cell i28 should equal 1028.8264134272' do
624
+ sheet1.i28.should be_within(102.88264134271999).of(1028.8264134272)
625
+ end
626
+
627
+ it 'cell j28 should equal 1010.9248338335667' do
628
+ sheet1.j28.should be_within(101.09248338335668).of(1010.9248338335667)
629
+ end
630
+
631
+ it 'cell k28 should equal 993.3347417248626' do
632
+ sheet1.k28.should be_within(99.33347417248626).of(993.3347417248626)
633
+ end
634
+
635
+ it 'cell l28 should equal 976.05071721885' do
636
+ sheet1.l28.should be_within(97.605071721885).of(976.05071721885)
637
+ end
638
+
639
+ it 'cell m28 should equal 959.0674347392421' do
640
+ sheet1.m28.should be_within(95.90674347392422).of(959.0674347392421)
641
+ end
642
+
643
+ it 'cell o28 should equal 3.265' do
644
+ sheet1.o28.should be_within(0.3265).of(3.265)
645
+ end
646
+
647
+ it 'cell b29 should equal "Leakage sectors"' do
648
+ sheet1.b29.should == "Leakage sectors"
649
+ end
650
+
651
+ it 'cell f29 should equal 32.0516914516129' do
652
+ sheet1.f29.should be_within(3.2051691451612907).of(32.0516914516129)
653
+ end
654
+
655
+ it 'cell g29 should equal 39.367490025443544' do
656
+ sheet1.g29.should be_within(3.936749002544355).of(39.367490025443544)
657
+ end
658
+
659
+ it 'cell h29 should equal 46.41899483880101' do
660
+ sheet1.h29.should be_within(4.641899483880102).of(46.41899483880101)
661
+ end
662
+
663
+ it 'cell i29 should equal 53.21318838337351' do
664
+ sheet1.i29.should be_within(5.321318838337351).of(53.21318838337351)
665
+ end
666
+
667
+ it 'cell j29 should equal 59.756890177717516' do
668
+ sheet1.j29.should be_within(5.975689017771752).of(59.756890177717516)
669
+ end
670
+
671
+ it 'cell k29 should equal 66.05676032470339' do
672
+ sheet1.k29.should be_within(6.605676032470339).of(66.05676032470339)
673
+ end
674
+
675
+ it 'cell l29 should equal 72.11930299450394' do
676
+ sheet1.l29.should be_within(7.211930299450394).of(72.11930299450394)
677
+ end
678
+
679
+ it 'cell m29 should equal 77.95086983463953' do
680
+ sheet1.m29.should be_within(7.795086983463953).of(77.95086983463953)
681
+ end
682
+
683
+ it 'cell f30 should equal 137.36439193548387' do
684
+ sheet1.f30.should be_within(13.736439193548387).of(137.36439193548387)
685
+ end
686
+
687
+ it 'cell g30 should equal 212.10239523912443' do
688
+ sheet1.g30.should be_within(21.210239523912445).of(212.10239523912443)
689
+ end
690
+
691
+ it 'cell h30 should equal 284.197927584496' do
692
+ sheet1.h30.should be_within(28.4197927584496).of(284.197927584496)
693
+ end
694
+
695
+ it 'cell i30 should equal 353.72031928306586' do
696
+ sheet1.i30.should be_within(35.37203192830659).of(353.72031928306586)
697
+ end
698
+
699
+ it 'cell j30 should equal 420.7372879859702' do
700
+ sheet1.j30.should be_within(42.073728798597024).of(420.7372879859702)
701
+ end
702
+
703
+ it 'cell k30 should equal 485.31497381414727' do
704
+ sheet1.k30.should be_within(48.53149738141473).of(485.31497381414727)
705
+ end
706
+
707
+ it 'cell l30 should equal 547.5179737541932' do
708
+ sheet1.l30.should be_within(54.75179737541933).of(547.5179737541932)
709
+ end
710
+
711
+ it 'cell m30 should equal 607.4093753348534' do
712
+ sheet1.m30.should be_within(60.740937533485344).of(607.4093753348534)
713
+ end
714
+
715
+ it 'cell f31 should equal 1253.8718091935484' do
716
+ sheet1.f31.should be_within(125.38718091935485).of(1253.8718091935484)
717
+ end
718
+
719
+ it 'cell g31 should equal 1317.0560814419875' do
720
+ sheet1.g31.should be_within(131.70560814419875).of(1317.0560814419875)
721
+ end
722
+
723
+ it 'cell h31 should equal 1377.6619187872295' do
724
+ sheet1.h31.should be_within(137.76619187872296).of(1377.6619187872295)
725
+ end
726
+
727
+ it 'cell i31 should equal 1435.7599210936394' do
728
+ sheet1.i31.should be_within(143.57599210936394).of(1435.7599210936394)
729
+ end
730
+
731
+ it 'cell j31 should equal 1491.4190119972543' do
732
+ sheet1.j31.should be_within(149.14190119972542).of(1491.4190119972543)
733
+ end
734
+
735
+ it 'cell k31 should equal 1544.7064758637134' do
736
+ sheet1.k31.should be_within(154.47064758637134).of(1544.7064758637134)
737
+ end
738
+
739
+ it 'cell l31 should equal 1595.687993967547' do
740
+ sheet1.l31.should be_within(159.5687993967547).of(1595.687993967547)
741
+ end
742
+
743
+ it 'cell m31 should equal 1644.427679908735' do
744
+ sheet1.m31.should be_within(164.4427679908735).of(1644.427679908735)
745
+ end
746
+
747
+ it 'cell f34 should equal 27111.39314516129' do
748
+ sheet1.f34.should be_within(2711.139314516129).of(27111.39314516129)
749
+ end
750
+
751
+ it 'cell g34 should equal 27971.63764965726' do
752
+ sheet1.g34.should be_within(2797.163764965726).of(27971.63764965726)
753
+ end
754
+
755
+ it 'cell h34 should equal 28859.177712280893' do
756
+ sheet1.h34.should be_within(2885.9177712280894).of(28859.177712280893)
757
+ end
758
+
759
+ it 'cell i34 should equal 29774.87942109156' do
760
+ sheet1.i34.should be_within(2977.487942109156).of(29774.87942109156)
761
+ end
762
+
763
+ it 'cell j34 should equal 30719.6363451228' do
764
+ sheet1.j34.should be_within(3071.96363451228).of(30719.6363451228)
765
+ end
766
+
767
+ it 'cell k34 should equal 31694.370406353544' do
768
+ sheet1.k34.should be_within(3169.4370406353546).of(31694.370406353544)
769
+ end
770
+
771
+ it 'cell l34 should equal 32700.032779347144' do
772
+ sheet1.l34.should be_within(3270.003277934715).of(32700.032779347144)
773
+ end
774
+
775
+ it 'cell m34 should equal 33737.60481943584' do
776
+ sheet1.m34.should be_within(3373.7604819435837).of(33737.60481943584)
777
+ end
778
+
779
+ it 'cell f35 should equal 4235.402084677419' do
780
+ sheet1.f35.should be_within(423.54020846774193).of(4235.402084677419)
781
+ end
782
+
783
+ it 'cell g35 should equal 6601.08448819491' do
784
+ sheet1.g35.should be_within(660.1084488194911).of(6601.08448819491)
785
+ end
786
+
787
+ it 'cell h35 should equal 9112.628924292123' do
788
+ sheet1.h35.should be_within(911.2628924292123).of(9112.628924292123)
789
+ end
790
+
791
+ it 'cell i35 should equal 11776.910045309047' do
792
+ sheet1.i35.should be_within(1177.6910045309048).of(11776.910045309047)
793
+ end
794
+
795
+ it 'cell j35 should equal 14601.091916164401' do
796
+ sheet1.j35.should be_within(1460.1091916164403).of(14601.091916164401)
797
+ end
798
+
799
+ it 'cell k35 should equal 17592.639459126676' do
800
+ sheet1.k35.should be_within(1759.2639459126676).of(17592.639459126676)
801
+ end
802
+
803
+ it 'cell l35 should equal 20759.3303334919' do
804
+ sheet1.l35.should be_within(2075.9330333491903).of(20759.3303334919)
805
+ end
806
+
807
+ it 'cell m35 should equal 24109.267266244624' do
808
+ sheet1.m35.should be_within(2410.9267266244624).of(24109.267266244624)
809
+ end
810
+
811
+ it 'cell f41 should equal 0.13557422969187674' do
812
+ sheet1.f41.should be_within(0.013557422969187674).of(0.13557422969187674)
813
+ end
814
+
815
+ it 'cell f43 should equal 0.12201680672268907' do
816
+ sheet1.f43.should be_within(0.012201680672268907).of(0.12201680672268907)
817
+ end
818
+
819
+ it 'cell f45 should equal 2013.0' do
820
+ sheet1.f45.should be_within(201.3).of(2013.0)
821
+ end
822
+
823
+ it 'cell g45 should equal 2014.0' do
824
+ sheet1.g45.should be_within(201.4).of(2014.0)
825
+ end
826
+
827
+ it 'cell h45 should equal 2015.0' do
828
+ sheet1.h45.should be_within(201.5).of(2015.0)
829
+ end
830
+
831
+ it 'cell i45 should equal 2016.0' do
832
+ sheet1.i45.should be_within(201.60000000000002).of(2016.0)
833
+ end
834
+
835
+ it 'cell j45 should equal 2017.0' do
836
+ sheet1.j45.should be_within(201.70000000000002).of(2017.0)
837
+ end
838
+
839
+ it 'cell k45 should equal 2018.0' do
840
+ sheet1.k45.should be_within(201.8).of(2018.0)
841
+ end
842
+
843
+ it 'cell l45 should equal 2019.0' do
844
+ sheet1.l45.should be_within(201.9).of(2019.0)
845
+ end
846
+
847
+ it 'cell m45 should equal 2020.0' do
848
+ sheet1.m45.should be_within(202.0).of(2020.0)
849
+ end
850
+
851
+ it 'cell f46 should equal 152.99343419739765' do
852
+ sheet1.f46.should be_within(15.299343419739765).of(152.99343419739765)
853
+ end
854
+
855
+ it 'cell g46 should equal 160.70297733224922' do
856
+ sheet1.g46.should be_within(16.070297733224923).of(160.70297733224922)
857
+ end
858
+
859
+ it 'cell h46 should equal 168.09790807387034' do
860
+ sheet1.h46.should be_within(16.809790807387035).of(168.09790807387034)
861
+ end
862
+
863
+ it 'cell i46 should equal 175.1868407922659' do
864
+ sheet1.i46.should be_within(17.518684079226592).of(175.1868407922659)
865
+ end
866
+
867
+ it 'cell j46 should equal 181.97818532941287' do
868
+ sheet1.j46.should be_within(18.197818532941287).of(181.97818532941287)
869
+ end
870
+
871
+ it 'cell k46 should equal 188.4801515087489' do
872
+ sheet1.k46.should be_within(18.84801515087489).of(188.4801515087489)
873
+ end
874
+
875
+ it 'cell l46 should equal 194.70075354965363' do
876
+ sheet1.l46.should be_within(19.470075354965363).of(194.70075354965363)
877
+ end
878
+
879
+ it 'cell m46 should equal 200.6478143888641' do
880
+ sheet1.m46.should be_within(20.064781438886413).of(200.6478143888641)
881
+ end
882
+
883
+ end
884
+