rubyfromexcel 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README +22 -0
- data/bin/rubyfromexcel +20 -0
- data/examples/create_and_test_examples.rb +37 -0
- data/examples/ruby-versions/array-formulas-ruby/sheets/sheet1.rb +59 -0
- data/examples/ruby-versions/array-formulas-ruby/sheets/sheet2.rb +9 -0
- data/examples/ruby-versions/array-formulas-ruby/specs/sheet1_rspec.rb +156 -0
- data/examples/ruby-versions/array-formulas-ruby/specs/sheet2_rspec.rb +8 -0
- data/examples/ruby-versions/array-formulas-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/complex-test-ruby/sheets/sheet1.rb +305 -0
- data/examples/ruby-versions/complex-test-ruby/sheets/sheet2.rb +147 -0
- data/examples/ruby-versions/complex-test-ruby/specs/sheet1_rspec.rb +876 -0
- data/examples/ruby-versions/complex-test-ruby/specs/sheet2_rspec.rb +412 -0
- data/examples/ruby-versions/complex-test-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/namedReferenceTest-ruby/sheets/sheet1.rb +9 -0
- data/examples/ruby-versions/namedReferenceTest-ruby/sheets/sheet2.rb +8 -0
- data/examples/ruby-versions/namedReferenceTest-ruby/specs/sheet1_rspec.rb +16 -0
- data/examples/ruby-versions/namedReferenceTest-ruby/specs/sheet2_rspec.rb +16 -0
- data/examples/ruby-versions/namedReferenceTest-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/pruning-ruby/sheets/sheet1.rb +11 -0
- data/examples/ruby-versions/pruning-ruby/sheets/sheet2.rb +14 -0
- data/examples/ruby-versions/pruning-ruby/sheets/sheet3.rb +7 -0
- data/examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb +20 -0
- data/examples/ruby-versions/pruning-ruby/specs/sheet2_rspec.rb +20 -0
- data/examples/ruby-versions/pruning-ruby/specs/sheet3_rspec.rb +8 -0
- data/examples/ruby-versions/pruning-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/sharedFormulaTest-ruby/sheets/sheet1.rb +15 -0
- data/examples/ruby-versions/sharedFormulaTest-ruby/specs/sheet1_rspec.rb +44 -0
- data/examples/ruby-versions/sharedFormulaTest-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/table-test-ruby/sheets/sheet1.rb +17 -0
- data/examples/ruby-versions/table-test-ruby/sheets/sheet2.rb +5 -0
- data/examples/ruby-versions/table-test-ruby/sheets/sheet3.rb +5 -0
- data/examples/ruby-versions/table-test-ruby/specs/sheet1_rspec.rb +20 -0
- data/examples/ruby-versions/table-test-ruby/specs/sheet2_rspec.rb +8 -0
- data/examples/ruby-versions/table-test-ruby/specs/sheet3_rspec.rb +8 -0
- data/examples/ruby-versions/table-test-ruby/spreadsheet.rb +9 -0
- data/examples/sheets/array-formulas.xlsx +0 -0
- data/examples/sheets/complex-test.xlsx +0 -0
- data/examples/sheets/namedReferenceTest.xlsx +0 -0
- data/examples/sheets/pruning.xlsx +0 -0
- data/examples/sheets/sharedFormulaTest.xlsx +0 -0
- data/examples/sheets/table-test.xlsx +0 -0
- data/examples/sheets/~$array-formulas.xlsx +0 -0
- data/examples/unzipped-sheets/array-formulas/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/array-formulas/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/complex-test/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/complex-test/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/comments1.xml +5 -0
- data/examples/unzipped-sheets/complex-test/xl/comments2.xml +5 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing2.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/drawing2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing1.vml +46 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing2.vml +46 -0
- data/examples/unzipped-sheets/complex-test/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet2.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/pruning/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/pruning/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/pruning/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/pruning/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/pruning/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/pruning/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/pruning/xl/worksheets/sheet3.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/table-test/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/table-test/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/table-test/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/table-test/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/printerSettings/printerSettings1.bin +0 -0
- data/examples/unzipped-sheets/table-test/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/tables/table1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet3.xml +2 -0
- data/lib/cells/array/array_formula_builder.rb +58 -0
- data/lib/cells/array/array_formula_cell.rb +27 -0
- data/lib/cells/array/arraying_formula_cell.rb +67 -0
- data/lib/cells/array/single_cell_array_formula_builder.rb +9 -0
- data/lib/cells/array/single_cell_array_formula_cell.rb +11 -0
- data/lib/cells/cell.rb +98 -0
- data/lib/cells/cells.rb +9 -0
- data/lib/cells/formula/formula_cell.rb +18 -0
- data/lib/cells/formula/simple_formula_cell.rb +4 -0
- data/lib/cells/shared/shared_formula_builder.rb +15 -0
- data/lib/cells/shared/shared_formula_cell.rb +20 -0
- data/lib/cells/shared/sharing_formula_cell.rb +36 -0
- data/lib/cells/value/value_cell.rb +24 -0
- data/lib/excelfile/excelfile.rb +6 -0
- data/lib/excelfile/relationships.rb +24 -0
- data/lib/excelfile/shared_strings.rb +21 -0
- data/lib/excelfile/sheet_names.rb +6 -0
- data/lib/excelfile/table.rb +116 -0
- data/lib/excelfile/workbook.rb +108 -0
- data/lib/excelfile/worksheet.rb +122 -0
- data/lib/formulae/compile/formula_builder.rb +316 -0
- data/lib/formulae/formulae.rb +6 -0
- data/lib/formulae/parse/formula_peg.rb +213 -0
- data/lib/formulae/parse/formula_peg.txt +40 -0
- data/lib/formulae/run/excel_functions.rb +375 -0
- data/lib/formulae/run/excel_matrix.rb +114 -0
- data/lib/formulae/run/excel_range.rb +256 -0
- data/lib/formulae/run/reference.rb +79 -0
- data/lib/optimiser/dependency_builder.rb +86 -0
- data/lib/optimiser/optimiser.rb +3 -0
- data/lib/optimiser/shared_formula_dependency_builder.rb +43 -0
- data/lib/optimiser/workbook_pruner.rb +80 -0
- data/lib/rubyfromexcel.rb +105 -0
- data/lib/runtime/runtime_formula_builder.rb +32 -0
- data/spec/array_formula_builder_spec.rb +35 -0
- data/spec/array_formula_cell_spec.rb +17 -0
- data/spec/arraying_formula_cell_spec.rb +38 -0
- data/spec/dependency_builder_spec.rb +71 -0
- data/spec/excel_functions_spec.rb +381 -0
- data/spec/excel_matrix_spec.rb +92 -0
- data/spec/excel_range_spec.rb +161 -0
- data/spec/formula_builder_spec.rb +230 -0
- data/spec/formula_peg_spec.rb +165 -0
- data/spec/reference_spec.rb +72 -0
- data/spec/relationships_spec.rb +51 -0
- data/spec/runtime_formula_builder_spec.rb +55 -0
- data/spec/shared_formula_builder_spec.rb +29 -0
- data/spec/shared_formula_cell_spec.rb +23 -0
- data/spec/shared_formula_dependency_builder_spec.rb +48 -0
- data/spec/shared_strings_spec.rb +14 -0
- data/spec/sharing_formula_cell_spec.rb +79 -0
- data/spec/simple_formula_cell_spec.rb +78 -0
- data/spec/single_cell_array_formula_builder_spec.rb +19 -0
- data/spec/single_cell_array_formula_cell_spec.rb +25 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/table_spec.rb +100 -0
- data/spec/value_cell_spec.rb +49 -0
- data/spec/workbook_pruner_spec.rb +27 -0
- data/spec/workbook_spec.rb +283 -0
- data/spec/worksheet_failiures_spec.rb +41 -0
- data/spec/worksheet_spec.rb +486 -0
- metadata +291 -0
@@ -0,0 +1,876 @@
|
|
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_close(1125.0,112.5)
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'cell g5 should equal 1102.5' do
|
12
|
+
sheet1.g5.should be_close(1102.5,110.25)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'cell h5 should equal 1080.45' do
|
16
|
+
sheet1.h5.should be_close(1080.45,108.045)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'cell i5 should equal 1058.841' do
|
20
|
+
sheet1.i5.should be_close(1058.841,105.8841)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'cell j5 should equal 1037.66418' do
|
24
|
+
sheet1.j5.should be_close(1037.66418,103.766418)
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'cell k5 should equal 1016.9108964' do
|
28
|
+
sheet1.k5.should be_close(1016.9108964,101.69108964)
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'cell l5 should equal 996.572678472' do
|
32
|
+
sheet1.l5.should be_close(996.572678472,99.6572678472)
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'cell m5 should equal 976.64122490256' do
|
36
|
+
sheet1.m5.should be_close(976.64122490256,97.664122490256)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'cell f6 should equal 332.5' do
|
40
|
+
sheet1.f6.should be_close(332.5,33.25)
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'cell g6 should equal 325.85' do
|
44
|
+
sheet1.g6.should be_close(325.85,32.585)
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'cell h6 should equal 319.333' do
|
48
|
+
sheet1.h6.should be_close(319.333,31.9333)
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'cell i6 should equal 312.94634' do
|
52
|
+
sheet1.i6.should be_close(312.94634,31.294634)
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'cell j6 should equal 306.6874132' do
|
56
|
+
sheet1.j6.should be_close(306.6874132,30.66874132)
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'cell k6 should equal 300.553664936' do
|
60
|
+
sheet1.k6.should be_close(300.553664936,30.0553664936)
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'cell l6 should equal 294.54259163728' do
|
64
|
+
sheet1.l6.should be_close(294.54259163728,29.454259163728)
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'cell m6 should equal 288.651739804534' do
|
68
|
+
sheet1.m6.should be_close(288.651739804534,28.8651739804534)
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'cell f7 should equal 712.5' do
|
72
|
+
sheet1.f7.should be_close(712.5,71.25)
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'cell g7 should equal 698.25' do
|
76
|
+
sheet1.g7.should be_close(698.25,69.825)
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'cell h7 should equal 684.285' do
|
80
|
+
sheet1.h7.should be_close(684.285,68.4285)
|
81
|
+
end
|
82
|
+
|
83
|
+
it 'cell i7 should equal 670.5993' do
|
84
|
+
sheet1.i7.should be_close(670.5993,67.05993)
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'cell j7 should equal 657.187314' do
|
88
|
+
sheet1.j7.should be_close(657.187314,65.7187314)
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'cell k7 should equal 644.04356772' do
|
92
|
+
sheet1.k7.should be_close(644.04356772,64.404356772)
|
93
|
+
end
|
94
|
+
|
95
|
+
it 'cell l7 should equal 631.1626963656' do
|
96
|
+
sheet1.l7.should be_close(631.1626963656,63.11626963656)
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'cell m7 should equal 618.539442438288' do
|
100
|
+
sheet1.m7.should be_close(618.539442438288,61.8539442438288)
|
101
|
+
end
|
102
|
+
|
103
|
+
it 'cell f8 should equal 2170.0' do
|
104
|
+
sheet1.f8.should be_close(2170.0,217.0)
|
105
|
+
end
|
106
|
+
|
107
|
+
it 'cell g8 should equal 2126.6' do
|
108
|
+
sheet1.g8.should be_close(2126.6,212.66)
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'cell h8 should equal 2084.068' do
|
112
|
+
sheet1.h8.should be_close(2084.068,208.4068)
|
113
|
+
end
|
114
|
+
|
115
|
+
it 'cell i8 should equal 2042.38664' do
|
116
|
+
sheet1.i8.should be_close(2042.38664,204.238664)
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'cell j8 should equal 2001.5389072' do
|
120
|
+
sheet1.j8.should be_close(2001.5389072,200.15389072)
|
121
|
+
end
|
122
|
+
|
123
|
+
it 'cell k8 should equal 1961.508129056' do
|
124
|
+
sheet1.k8.should be_close(1961.508129056,196.1508129056)
|
125
|
+
end
|
126
|
+
|
127
|
+
it 'cell l8 should equal 1922.27796647488' do
|
128
|
+
sheet1.l8.should be_close(1922.27796647488,192.227796647488)
|
129
|
+
end
|
130
|
+
|
131
|
+
it 'cell m8 should equal 1883.83240714538' do
|
132
|
+
sheet1.m8.should be_close(1883.83240714538,188.383240714538)
|
133
|
+
end
|
134
|
+
|
135
|
+
it 'cell f10 should equal 2013.0' do
|
136
|
+
sheet1.f10.should be_close(2013.0,201.3)
|
137
|
+
end
|
138
|
+
|
139
|
+
it 'cell g10 should equal 2014.0' do
|
140
|
+
sheet1.g10.should be_close(2014.0,201.4)
|
141
|
+
end
|
142
|
+
|
143
|
+
it 'cell h10 should equal 2015.0' do
|
144
|
+
sheet1.h10.should be_close(2015.0,201.5)
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'cell i10 should equal 2016.0' do
|
148
|
+
sheet1.i10.should be_close(2016.0,201.6)
|
149
|
+
end
|
150
|
+
|
151
|
+
it 'cell j10 should equal 2017.0' do
|
152
|
+
sheet1.j10.should be_close(2017.0,201.7)
|
153
|
+
end
|
154
|
+
|
155
|
+
it 'cell k10 should equal 2018.0' do
|
156
|
+
sheet1.k10.should be_close(2018.0,201.8)
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'cell l10 should equal 2019.0' do
|
160
|
+
sheet1.l10.should be_close(2019.0,201.9)
|
161
|
+
end
|
162
|
+
|
163
|
+
it 'cell m10 should equal 2020.0' do
|
164
|
+
sheet1.m10.should be_close(2020.0,202.0)
|
165
|
+
end
|
166
|
+
|
167
|
+
it 'cell g11 should equal 0.0' do
|
168
|
+
sheet1.g11.should be_close(0.0,1.0e-08)
|
169
|
+
end
|
170
|
+
|
171
|
+
it 'cell h11 should equal 0.0' do
|
172
|
+
sheet1.h11.should be_close(0.0,1.0e-08)
|
173
|
+
end
|
174
|
+
|
175
|
+
it 'cell i11 should equal 0.0' do
|
176
|
+
sheet1.i11.should be_close(0.0,1.0e-08)
|
177
|
+
end
|
178
|
+
|
179
|
+
it 'cell j11 should equal 0.0' do
|
180
|
+
sheet1.j11.should be_close(0.0,1.0e-08)
|
181
|
+
end
|
182
|
+
|
183
|
+
it 'cell k11 should equal 0.0' do
|
184
|
+
sheet1.k11.should be_close(0.0,1.0e-08)
|
185
|
+
end
|
186
|
+
|
187
|
+
it 'cell l11 should equal 0.0' do
|
188
|
+
sheet1.l11.should be_close(0.0,1.0e-08)
|
189
|
+
end
|
190
|
+
|
191
|
+
it 'cell m11 should equal 0.0' do
|
192
|
+
sheet1.m11.should be_close(0.0,1.0e-08)
|
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_close(0.875,0.0875)
|
201
|
+
end
|
202
|
+
|
203
|
+
it 'cell h12 should equal 0.85' do
|
204
|
+
sheet1.h12.should be_close(0.85,0.085)
|
205
|
+
end
|
206
|
+
|
207
|
+
it 'cell i12 should equal 0.825' do
|
208
|
+
sheet1.i12.should be_close(0.825,0.0825)
|
209
|
+
end
|
210
|
+
|
211
|
+
it 'cell j12 should equal 0.8' do
|
212
|
+
sheet1.j12.should be_close(0.8,0.08)
|
213
|
+
end
|
214
|
+
|
215
|
+
it 'cell k12 should equal 0.775' do
|
216
|
+
sheet1.k12.should be_close(0.775,0.0775)
|
217
|
+
end
|
218
|
+
|
219
|
+
it 'cell l12 should equal 0.75' do
|
220
|
+
sheet1.l12.should be_close(0.75,0.075)
|
221
|
+
end
|
222
|
+
|
223
|
+
it 'cell m12 should equal 0.725' do
|
224
|
+
sheet1.m12.should be_close(0.725,0.0725)
|
225
|
+
end
|
226
|
+
|
227
|
+
it 'cell g13 should equal 0.685714285714286' do
|
228
|
+
sheet1.g13.should be_close(0.685714285714286,0.0685714285714286)
|
229
|
+
end
|
230
|
+
|
231
|
+
it 'cell h13 should equal 0.571428571428571' do
|
232
|
+
sheet1.h13.should be_close(0.571428571428571,0.0571428571428571)
|
233
|
+
end
|
234
|
+
|
235
|
+
it 'cell i13 should equal 0.457142857142857' do
|
236
|
+
sheet1.i13.should be_close(0.457142857142857,0.0457142857142857)
|
237
|
+
end
|
238
|
+
|
239
|
+
it 'cell j13 should equal 0.342857142857143' do
|
240
|
+
sheet1.j13.should be_close(0.342857142857143,0.0342857142857143)
|
241
|
+
end
|
242
|
+
|
243
|
+
it 'cell k13 should equal 0.228571428571428' do
|
244
|
+
sheet1.k13.should be_close(0.228571428571428,0.0228571428571428)
|
245
|
+
end
|
246
|
+
|
247
|
+
it 'cell l13 should equal 0.114285714285714' do
|
248
|
+
sheet1.l13.should be_close(0.114285714285714,0.0114285714285714)
|
249
|
+
end
|
250
|
+
|
251
|
+
it 'cell o13 should equal -0.114285714285714' do
|
252
|
+
sheet1.o13.should be_close(-0.114285714285714,0.0114285714285714)
|
253
|
+
end
|
254
|
+
|
255
|
+
it 'cell f14 should equal 0.831818181818182' do
|
256
|
+
sheet1.f14.should be_close(0.831818181818182,0.0831818181818182)
|
257
|
+
end
|
258
|
+
|
259
|
+
it 'cell g14 should equal 0.745941558441559' do
|
260
|
+
sheet1.g14.should be_close(0.745941558441559,0.0745941558441559)
|
261
|
+
end
|
262
|
+
|
263
|
+
it 'cell h14 should equal 0.660064935064935' do
|
264
|
+
sheet1.h14.should be_close(0.660064935064935,0.0660064935064935)
|
265
|
+
end
|
266
|
+
|
267
|
+
it 'cell i14 should equal 0.574188311688312' do
|
268
|
+
sheet1.i14.should be_close(0.574188311688312,0.0574188311688312)
|
269
|
+
end
|
270
|
+
|
271
|
+
it 'cell j14 should equal 0.488311688311688' do
|
272
|
+
sheet1.j14.should be_close(0.488311688311688,0.0488311688311688)
|
273
|
+
end
|
274
|
+
|
275
|
+
it 'cell k14 should equal 0.402435064935065' do
|
276
|
+
sheet1.k14.should be_close(0.402435064935065,0.0402435064935065)
|
277
|
+
end
|
278
|
+
|
279
|
+
it 'cell l14 should equal 0.316558441558441' do
|
280
|
+
sheet1.l14.should be_close(0.316558441558441,0.0316558441558441)
|
281
|
+
end
|
282
|
+
|
283
|
+
it 'cell m14 should equal 0.230681818181818' do
|
284
|
+
sheet1.m14.should be_close(0.230681818181818,0.0230681818181818)
|
285
|
+
end
|
286
|
+
|
287
|
+
it 'cell f15 should equal 0.400576036866359' do
|
288
|
+
sheet1.f15.should be_close(0.400576036866359,0.0400576036866359)
|
289
|
+
end
|
290
|
+
|
291
|
+
it 'cell g15 should equal 0.359220704410797' do
|
292
|
+
sheet1.g15.should be_close(0.359220704410797,0.0359220704410797)
|
293
|
+
end
|
294
|
+
|
295
|
+
it 'cell h15 should equal 0.317865371955234' do
|
296
|
+
sheet1.h15.should be_close(0.317865371955234,0.0317865371955234)
|
297
|
+
end
|
298
|
+
|
299
|
+
it 'cell i15 should equal 0.276510039499671' do
|
300
|
+
sheet1.i15.should be_close(0.276510039499671,0.0276510039499671)
|
301
|
+
end
|
302
|
+
|
303
|
+
it 'cell j15 should equal 0.235154707044108' do
|
304
|
+
sheet1.j15.should be_close(0.235154707044108,0.0235154707044108)
|
305
|
+
end
|
306
|
+
|
307
|
+
it 'cell k15 should equal 0.193799374588545' do
|
308
|
+
sheet1.k15.should be_close(0.193799374588545,0.0193799374588545)
|
309
|
+
end
|
310
|
+
|
311
|
+
it 'cell l15 should equal 0.152444042132982' do
|
312
|
+
sheet1.l15.should be_close(0.152444042132982,0.0152444042132982)
|
313
|
+
end
|
314
|
+
|
315
|
+
it 'cell m15 should equal 0.111088709677419' do
|
316
|
+
sheet1.m15.should be_close(0.111088709677419,0.0111088709677419)
|
317
|
+
end
|
318
|
+
|
319
|
+
it 'cell f17 should equal 0.168181818181818' do
|
320
|
+
sheet1.f17.should be_close(0.168181818181818,0.0168181818181818)
|
321
|
+
end
|
322
|
+
|
323
|
+
it 'cell g17 should equal 0.254058441558441' do
|
324
|
+
sheet1.g17.should be_close(0.254058441558441,0.0254058441558441)
|
325
|
+
end
|
326
|
+
|
327
|
+
it 'cell h17 should equal 0.339935064935065' do
|
328
|
+
sheet1.h17.should be_close(0.339935064935065,0.0339935064935065)
|
329
|
+
end
|
330
|
+
|
331
|
+
it 'cell i17 should equal 0.425811688311688' do
|
332
|
+
sheet1.i17.should be_close(0.425811688311688,0.0425811688311688)
|
333
|
+
end
|
334
|
+
|
335
|
+
it 'cell j17 should equal 0.511688311688312' do
|
336
|
+
sheet1.j17.should be_close(0.511688311688312,0.0511688311688312)
|
337
|
+
end
|
338
|
+
|
339
|
+
it 'cell k17 should equal 0.597564935064935' do
|
340
|
+
sheet1.k17.should be_close(0.597564935064935,0.0597564935064935)
|
341
|
+
end
|
342
|
+
|
343
|
+
it 'cell l17 should equal 0.683441558441559' do
|
344
|
+
sheet1.l17.should be_close(0.683441558441559,0.0683441558441559)
|
345
|
+
end
|
346
|
+
|
347
|
+
it 'cell m17 should equal 0.769318181818182' do
|
348
|
+
sheet1.m17.should be_close(0.769318181818182,0.0769318181818182)
|
349
|
+
end
|
350
|
+
|
351
|
+
it 'cell f18 should equal 2013.0' do
|
352
|
+
sheet1.f18.should be_close(2013.0,201.3)
|
353
|
+
end
|
354
|
+
|
355
|
+
it 'cell g18 should equal 2014.0' do
|
356
|
+
sheet1.g18.should be_close(2014.0,201.4)
|
357
|
+
end
|
358
|
+
|
359
|
+
it 'cell h18 should equal 2015.0' do
|
360
|
+
sheet1.h18.should be_close(2015.0,201.5)
|
361
|
+
end
|
362
|
+
|
363
|
+
it 'cell i18 should equal 2016.0' do
|
364
|
+
sheet1.i18.should be_close(2016.0,201.6)
|
365
|
+
end
|
366
|
+
|
367
|
+
it 'cell j18 should equal 2017.0' do
|
368
|
+
sheet1.j18.should be_close(2017.0,201.7)
|
369
|
+
end
|
370
|
+
|
371
|
+
it 'cell k18 should equal 2018.0' do
|
372
|
+
sheet1.k18.should be_close(2018.0,201.8)
|
373
|
+
end
|
374
|
+
|
375
|
+
it 'cell l18 should equal 2019.0' do
|
376
|
+
sheet1.l18.should be_close(2019.0,201.9)
|
377
|
+
end
|
378
|
+
|
379
|
+
it 'cell m18 should equal 2020.0' do
|
380
|
+
sheet1.m18.should be_close(2020.0,202.0)
|
381
|
+
end
|
382
|
+
|
383
|
+
it 'cell d19 should equal 2207.0' do
|
384
|
+
sheet1.d19.should be_close(2207.0,220.7)
|
385
|
+
end
|
386
|
+
|
387
|
+
it 'cell f19 should equal 2091.7946' do
|
388
|
+
sheet1.f19.should be_close(2091.7946,209.17946)
|
389
|
+
end
|
390
|
+
|
391
|
+
it 'cell g19 should equal 2055.39737396' do
|
392
|
+
sheet1.g19.should be_close(2055.39737396,205.539737396)
|
393
|
+
end
|
394
|
+
|
395
|
+
it 'cell h19 should equal 2019.6334596531' do
|
396
|
+
sheet1.h19.should be_close(2019.6334596531,201.96334596531)
|
397
|
+
end
|
398
|
+
|
399
|
+
it 'cell i19 should equal 1984.49183745513' do
|
400
|
+
sheet1.i19.should be_close(1984.49183745513,198.449183745513)
|
401
|
+
end
|
402
|
+
|
403
|
+
it 'cell j19 should equal 1949.96167948341' do
|
404
|
+
sheet1.j19.should be_close(1949.96167948341,194.996167948341)
|
405
|
+
end
|
406
|
+
|
407
|
+
it 'cell k19 should equal 1916.0323462604' do
|
408
|
+
sheet1.k19.should be_close(1916.0323462604,191.60323462604)
|
409
|
+
end
|
410
|
+
|
411
|
+
it 'cell l19 should equal 1882.69338343547' do
|
412
|
+
sheet1.l19.should be_close(1882.69338343547,188.269338343547)
|
413
|
+
end
|
414
|
+
|
415
|
+
it 'cell m19 should equal 1849.93451856369' do
|
416
|
+
sheet1.m19.should be_close(1849.93451856369,184.993451856369)
|
417
|
+
end
|
418
|
+
|
419
|
+
it 'cell f20 should equal 848.707567741935' do
|
420
|
+
sheet1.f20.should be_close(848.707567741935,84.8707567741935)
|
421
|
+
end
|
422
|
+
|
423
|
+
it 'cell g20 should equal 763.150624836641' do
|
424
|
+
sheet1.g20.should be_close(763.150624836641,76.3150624836641)
|
425
|
+
end
|
426
|
+
|
427
|
+
it 'cell h20 should equal 677.1799459732' do
|
428
|
+
sheet1.h20.should be_close(677.1799459732,67.71799459732)
|
429
|
+
end
|
430
|
+
|
431
|
+
it 'cell i20 should equal 590.793879521034' do
|
432
|
+
sheet1.i20.should be_close(590.793879521034,59.0793879521034)
|
433
|
+
end
|
434
|
+
|
435
|
+
it 'cell j20 should equal 503.990767997985' do
|
436
|
+
sheet1.j20.should be_close(503.990767997985,50.3990767997985)
|
437
|
+
end
|
438
|
+
|
439
|
+
it 'cell k20 should equal 416.768948050898' do
|
440
|
+
sheet1.k20.should be_close(416.768948050898,41.6768948050898)
|
441
|
+
end
|
442
|
+
|
443
|
+
it 'cell l20 should equal 329.126750436129' do
|
444
|
+
sheet1.l20.should be_close(329.126750436129,32.9126750436129)
|
445
|
+
end
|
446
|
+
|
447
|
+
it 'cell m20 should equal 241.0625' do
|
448
|
+
sheet1.m20.should be_close(241.0625,24.10625)
|
449
|
+
end
|
450
|
+
|
451
|
+
it 'cell f21 should equal 1243.08703225806' do
|
452
|
+
sheet1.f21.should be_close(1243.08703225806,124.308703225806)
|
453
|
+
end
|
454
|
+
|
455
|
+
it 'cell g21 should equal 1292.24674912336' do
|
456
|
+
sheet1.g21.should be_close(1292.24674912336,129.224674912336)
|
457
|
+
end
|
458
|
+
|
459
|
+
it 'cell h21 should equal 1342.4535136799' do
|
460
|
+
sheet1.h21.should be_close(1342.4535136799,134.24535136799)
|
461
|
+
end
|
462
|
+
|
463
|
+
it 'cell i21 should equal 1393.6979579341' do
|
464
|
+
sheet1.i21.should be_close(1393.6979579341,139.36979579341)
|
465
|
+
end
|
466
|
+
|
467
|
+
it 'cell j21 should equal 1445.97091148543' do
|
468
|
+
sheet1.j21.should be_close(1445.97091148543,144.597091148543)
|
469
|
+
end
|
470
|
+
|
471
|
+
it 'cell k21 should equal 1499.2633982095' do
|
472
|
+
sheet1.k21.should be_close(1499.2633982095,149.92633982095)
|
473
|
+
end
|
474
|
+
|
475
|
+
it 'cell l21 should equal 1553.56663299934' do
|
476
|
+
sheet1.l21.should be_close(1553.56663299934,155.356663299934)
|
477
|
+
end
|
478
|
+
|
479
|
+
it 'cell m21 should equal 1608.87201856369' do
|
480
|
+
sheet1.m21.should be_close(1608.87201856369,160.887201856369)
|
481
|
+
end
|
482
|
+
|
483
|
+
it 'cell f23 should equal 2013.0' do
|
484
|
+
sheet1.f23.should be_close(2013.0,201.3)
|
485
|
+
end
|
486
|
+
|
487
|
+
it 'cell g23 should equal 2014.0' do
|
488
|
+
sheet1.g23.should be_close(2014.0,201.4)
|
489
|
+
end
|
490
|
+
|
491
|
+
it 'cell h23 should equal 2015.0' do
|
492
|
+
sheet1.h23.should be_close(2015.0,201.5)
|
493
|
+
end
|
494
|
+
|
495
|
+
it 'cell i23 should equal 2016.0' do
|
496
|
+
sheet1.i23.should be_close(2016.0,201.6)
|
497
|
+
end
|
498
|
+
|
499
|
+
it 'cell j23 should equal 2017.0' do
|
500
|
+
sheet1.j23.should be_close(2017.0,201.7)
|
501
|
+
end
|
502
|
+
|
503
|
+
it 'cell k23 should equal 2018.0' do
|
504
|
+
sheet1.k23.should be_close(2018.0,201.8)
|
505
|
+
end
|
506
|
+
|
507
|
+
it 'cell l23 should equal 2019.0' do
|
508
|
+
sheet1.l23.should be_close(2019.0,201.9)
|
509
|
+
end
|
510
|
+
|
511
|
+
it 'cell m23 should equal 2020.0' do
|
512
|
+
sheet1.m23.should be_close(2020.0,202.0)
|
513
|
+
end
|
514
|
+
|
515
|
+
it 'cell g24 should equal 26.25' do
|
516
|
+
sheet1.g24.should be_close(26.25,2.625)
|
517
|
+
end
|
518
|
+
|
519
|
+
it 'cell h24 should equal 27.5625' do
|
520
|
+
sheet1.h24.should be_close(27.5625,2.75625)
|
521
|
+
end
|
522
|
+
|
523
|
+
it 'cell i24 should equal 28.940625' do
|
524
|
+
sheet1.i24.should be_close(28.940625,2.8940625)
|
525
|
+
end
|
526
|
+
|
527
|
+
it 'cell j24 should equal 30.38765625' do
|
528
|
+
sheet1.j24.should be_close(30.38765625,3.038765625)
|
529
|
+
end
|
530
|
+
|
531
|
+
it 'cell k24 should equal 31.9070390625' do
|
532
|
+
sheet1.k24.should be_close(31.9070390625,3.19070390625)
|
533
|
+
end
|
534
|
+
|
535
|
+
it 'cell l24 should equal 33.502391015625' do
|
536
|
+
sheet1.l24.should be_close(33.502391015625,3.3502391015625)
|
537
|
+
end
|
538
|
+
|
539
|
+
it 'cell m24 should equal 35.1775105664063' do
|
540
|
+
sheet1.m24.should be_close(35.1775105664063,3.51775105664063)
|
541
|
+
end
|
542
|
+
|
543
|
+
it 'cell f25 should equal 31077.1758064516' do
|
544
|
+
sheet1.f25.should be_close(31077.1758064516,3107.71758064516)
|
545
|
+
end
|
546
|
+
|
547
|
+
it 'cell g25 should equal 33921.4771644882' do
|
548
|
+
sheet1.g25.should be_close(33921.4771644882,3392.14771644882)
|
549
|
+
end
|
550
|
+
|
551
|
+
it 'cell h25 should equal 37001.3749708021' do
|
552
|
+
sheet1.h25.should be_close(37001.3749708021,3700.13749708021)
|
553
|
+
end
|
554
|
+
|
555
|
+
it 'cell i25 should equal 40334.4899638365' do
|
556
|
+
sheet1.i25.should be_close(40334.4899638365,4033.44899638365)
|
557
|
+
end
|
558
|
+
|
559
|
+
it 'cell j25 should equal 43939.6670057184' do
|
560
|
+
sheet1.j25.should be_close(43939.6670057184,4393.96670057184)
|
561
|
+
end
|
562
|
+
|
563
|
+
it 'cell k25 should equal 47837.0558116471' do
|
564
|
+
sheet1.k25.should be_close(47837.0558116471,4783.70558116471)
|
565
|
+
end
|
566
|
+
|
567
|
+
it 'cell l25 should equal 52048.196807572' do
|
568
|
+
sheet1.l25.should be_close(52048.196807572,5204.8196807572)
|
569
|
+
end
|
570
|
+
|
571
|
+
it 'cell m25 should equal 56596.1124330197' do
|
572
|
+
sheet1.m25.should be_close(56596.1124330197,5659.61124330197)
|
573
|
+
end
|
574
|
+
|
575
|
+
it 'cell f27 should equal 2013.0' do
|
576
|
+
sheet1.f27.should be_close(2013.0,201.3)
|
577
|
+
end
|
578
|
+
|
579
|
+
it 'cell g27 should equal 2014.0' do
|
580
|
+
sheet1.g27.should be_close(2014.0,201.4)
|
581
|
+
end
|
582
|
+
|
583
|
+
it 'cell h27 should equal 2015.0' do
|
584
|
+
sheet1.h27.should be_close(2015.0,201.5)
|
585
|
+
end
|
586
|
+
|
587
|
+
it 'cell i27 should equal 2016.0' do
|
588
|
+
sheet1.i27.should be_close(2016.0,201.6)
|
589
|
+
end
|
590
|
+
|
591
|
+
it 'cell j27 should equal 2017.0' do
|
592
|
+
sheet1.j27.should be_close(2017.0,201.7)
|
593
|
+
end
|
594
|
+
|
595
|
+
it 'cell k27 should equal 2018.0' do
|
596
|
+
sheet1.k27.should be_close(2018.0,201.8)
|
597
|
+
end
|
598
|
+
|
599
|
+
it 'cell l27 should equal 2019.0' do
|
600
|
+
sheet1.l27.should be_close(2019.0,201.9)
|
601
|
+
end
|
602
|
+
|
603
|
+
it 'cell m27 should equal 2020.0' do
|
604
|
+
sheet1.m27.should be_close(2020.0,202.0)
|
605
|
+
end
|
606
|
+
|
607
|
+
it 'cell f28 should equal 1084.45572580645' do
|
608
|
+
sheet1.f28.should be_close(1084.45572580645,108.445572580645)
|
609
|
+
end
|
610
|
+
|
611
|
+
it 'cell g28 should equal 1065.58619617742' do
|
612
|
+
sheet1.g28.should be_close(1065.58619617742,106.558619617742)
|
613
|
+
end
|
614
|
+
|
615
|
+
it 'cell h28 should equal 1047.04499636393' do
|
616
|
+
sheet1.h28.should be_close(1047.04499636393,104.704499636393)
|
617
|
+
end
|
618
|
+
|
619
|
+
it 'cell i28 should equal 1028.8264134272' do
|
620
|
+
sheet1.i28.should be_close(1028.8264134272,102.88264134272)
|
621
|
+
end
|
622
|
+
|
623
|
+
it 'cell j28 should equal 1010.92483383357' do
|
624
|
+
sheet1.j28.should be_close(1010.92483383357,101.092483383357)
|
625
|
+
end
|
626
|
+
|
627
|
+
it 'cell k28 should equal 993.334741724863' do
|
628
|
+
sheet1.k28.should be_close(993.334741724863,99.3334741724863)
|
629
|
+
end
|
630
|
+
|
631
|
+
it 'cell l28 should equal 976.05071721885' do
|
632
|
+
sheet1.l28.should be_close(976.05071721885,97.605071721885)
|
633
|
+
end
|
634
|
+
|
635
|
+
it 'cell m28 should equal 959.067434739242' do
|
636
|
+
sheet1.m28.should be_close(959.067434739242,95.9067434739242)
|
637
|
+
end
|
638
|
+
|
639
|
+
it 'cell b29 should equal "Leakage sectors"' do
|
640
|
+
sheet1.b29.should == "Leakage sectors"
|
641
|
+
end
|
642
|
+
|
643
|
+
it 'cell f29 should equal 32.0516914516129' do
|
644
|
+
sheet1.f29.should be_close(32.0516914516129,3.20516914516129)
|
645
|
+
end
|
646
|
+
|
647
|
+
it 'cell g29 should equal 39.3674900254435' do
|
648
|
+
sheet1.g29.should be_close(39.3674900254435,3.93674900254435)
|
649
|
+
end
|
650
|
+
|
651
|
+
it 'cell h29 should equal 46.418994838801' do
|
652
|
+
sheet1.h29.should be_close(46.418994838801,4.6418994838801)
|
653
|
+
end
|
654
|
+
|
655
|
+
it 'cell i29 should equal 53.2131883833735' do
|
656
|
+
sheet1.i29.should be_close(53.2131883833735,5.32131883833735)
|
657
|
+
end
|
658
|
+
|
659
|
+
it 'cell j29 should equal 59.7568901777175' do
|
660
|
+
sheet1.j29.should be_close(59.7568901777175,5.97568901777175)
|
661
|
+
end
|
662
|
+
|
663
|
+
it 'cell k29 should equal 66.0567603247034' do
|
664
|
+
sheet1.k29.should be_close(66.0567603247034,6.60567603247034)
|
665
|
+
end
|
666
|
+
|
667
|
+
it 'cell l29 should equal 72.1193029945039' do
|
668
|
+
sheet1.l29.should be_close(72.1193029945039,7.21193029945039)
|
669
|
+
end
|
670
|
+
|
671
|
+
it 'cell m29 should equal 77.9508698346395' do
|
672
|
+
sheet1.m29.should be_close(77.9508698346395,7.79508698346395)
|
673
|
+
end
|
674
|
+
|
675
|
+
it 'cell f30 should equal 137.364391935484' do
|
676
|
+
sheet1.f30.should be_close(137.364391935484,13.7364391935484)
|
677
|
+
end
|
678
|
+
|
679
|
+
it 'cell g30 should equal 212.102395239124' do
|
680
|
+
sheet1.g30.should be_close(212.102395239124,21.2102395239124)
|
681
|
+
end
|
682
|
+
|
683
|
+
it 'cell h30 should equal 284.197927584496' do
|
684
|
+
sheet1.h30.should be_close(284.197927584496,28.4197927584496)
|
685
|
+
end
|
686
|
+
|
687
|
+
it 'cell i30 should equal 353.720319283066' do
|
688
|
+
sheet1.i30.should be_close(353.720319283066,35.3720319283066)
|
689
|
+
end
|
690
|
+
|
691
|
+
it 'cell j30 should equal 420.73728798597' do
|
692
|
+
sheet1.j30.should be_close(420.73728798597,42.073728798597)
|
693
|
+
end
|
694
|
+
|
695
|
+
it 'cell k30 should equal 485.314973814147' do
|
696
|
+
sheet1.k30.should be_close(485.314973814147,48.5314973814147)
|
697
|
+
end
|
698
|
+
|
699
|
+
it 'cell l30 should equal 547.517973754193' do
|
700
|
+
sheet1.l30.should be_close(547.517973754193,54.7517973754193)
|
701
|
+
end
|
702
|
+
|
703
|
+
it 'cell m30 should equal 607.409375334853' do
|
704
|
+
sheet1.m30.should be_close(607.409375334853,60.7409375334853)
|
705
|
+
end
|
706
|
+
|
707
|
+
it 'cell f31 should equal 1253.87180919355' do
|
708
|
+
sheet1.f31.should be_close(1253.87180919355,125.387180919355)
|
709
|
+
end
|
710
|
+
|
711
|
+
it 'cell g31 should equal 1317.05608144199' do
|
712
|
+
sheet1.g31.should be_close(1317.05608144199,131.705608144199)
|
713
|
+
end
|
714
|
+
|
715
|
+
it 'cell h31 should equal 1377.66191878723' do
|
716
|
+
sheet1.h31.should be_close(1377.66191878723,137.766191878723)
|
717
|
+
end
|
718
|
+
|
719
|
+
it 'cell i31 should equal 1435.75992109364' do
|
720
|
+
sheet1.i31.should be_close(1435.75992109364,143.575992109364)
|
721
|
+
end
|
722
|
+
|
723
|
+
it 'cell j31 should equal 1491.41901199725' do
|
724
|
+
sheet1.j31.should be_close(1491.41901199725,149.141901199725)
|
725
|
+
end
|
726
|
+
|
727
|
+
it 'cell k31 should equal 1544.70647586371' do
|
728
|
+
sheet1.k31.should be_close(1544.70647586371,154.470647586371)
|
729
|
+
end
|
730
|
+
|
731
|
+
it 'cell l31 should equal 1595.68799396755' do
|
732
|
+
sheet1.l31.should be_close(1595.68799396755,159.568799396755)
|
733
|
+
end
|
734
|
+
|
735
|
+
it 'cell m31 should equal 1644.42767990873' do
|
736
|
+
sheet1.m31.should be_close(1644.42767990873,164.442767990873)
|
737
|
+
end
|
738
|
+
|
739
|
+
it 'cell f34 should equal 27111.3931451613' do
|
740
|
+
sheet1.f34.should be_close(27111.3931451613,2711.13931451613)
|
741
|
+
end
|
742
|
+
|
743
|
+
it 'cell g34 should equal 27971.6376496573' do
|
744
|
+
sheet1.g34.should be_close(27971.6376496573,2797.16376496573)
|
745
|
+
end
|
746
|
+
|
747
|
+
it 'cell h34 should equal 28859.1777122809' do
|
748
|
+
sheet1.h34.should be_close(28859.1777122809,2885.91777122809)
|
749
|
+
end
|
750
|
+
|
751
|
+
it 'cell i34 should equal 29774.8794210916' do
|
752
|
+
sheet1.i34.should be_close(29774.8794210916,2977.48794210916)
|
753
|
+
end
|
754
|
+
|
755
|
+
it 'cell j34 should equal 30719.6363451228' do
|
756
|
+
sheet1.j34.should be_close(30719.6363451228,3071.96363451228)
|
757
|
+
end
|
758
|
+
|
759
|
+
it 'cell k34 should equal 31694.3704063535' do
|
760
|
+
sheet1.k34.should be_close(31694.3704063535,3169.43704063535)
|
761
|
+
end
|
762
|
+
|
763
|
+
it 'cell l34 should equal 32700.0327793471' do
|
764
|
+
sheet1.l34.should be_close(32700.0327793471,3270.00327793471)
|
765
|
+
end
|
766
|
+
|
767
|
+
it 'cell m34 should equal 33737.6048194358' do
|
768
|
+
sheet1.m34.should be_close(33737.6048194358,3373.76048194358)
|
769
|
+
end
|
770
|
+
|
771
|
+
it 'cell f35 should equal 4235.40208467742' do
|
772
|
+
sheet1.f35.should be_close(4235.40208467742,423.540208467742)
|
773
|
+
end
|
774
|
+
|
775
|
+
it 'cell g35 should equal 6601.08448819491' do
|
776
|
+
sheet1.g35.should be_close(6601.08448819491,660.108448819491)
|
777
|
+
end
|
778
|
+
|
779
|
+
it 'cell h35 should equal 9112.62892429212' do
|
780
|
+
sheet1.h35.should be_close(9112.62892429212,911.262892429212)
|
781
|
+
end
|
782
|
+
|
783
|
+
it 'cell i35 should equal 11776.910045309' do
|
784
|
+
sheet1.i35.should be_close(11776.910045309,1177.6910045309)
|
785
|
+
end
|
786
|
+
|
787
|
+
it 'cell j35 should equal 14601.0919161644' do
|
788
|
+
sheet1.j35.should be_close(14601.0919161644,1460.10919161644)
|
789
|
+
end
|
790
|
+
|
791
|
+
it 'cell k35 should equal 17592.6394591267' do
|
792
|
+
sheet1.k35.should be_close(17592.6394591267,1759.26394591267)
|
793
|
+
end
|
794
|
+
|
795
|
+
it 'cell l35 should equal 20759.3303334919' do
|
796
|
+
sheet1.l35.should be_close(20759.3303334919,2075.93303334919)
|
797
|
+
end
|
798
|
+
|
799
|
+
it 'cell m35 should equal 24109.2672662446' do
|
800
|
+
sheet1.m35.should be_close(24109.2672662446,2410.92672662446)
|
801
|
+
end
|
802
|
+
|
803
|
+
it 'cell f41 should equal 0.135574229691877' do
|
804
|
+
sheet1.f41.should be_close(0.135574229691877,0.0135574229691877)
|
805
|
+
end
|
806
|
+
|
807
|
+
it 'cell f43 should equal 0.122016806722689' do
|
808
|
+
sheet1.f43.should be_close(0.122016806722689,0.0122016806722689)
|
809
|
+
end
|
810
|
+
|
811
|
+
it 'cell f45 should equal 2013.0' do
|
812
|
+
sheet1.f45.should be_close(2013.0,201.3)
|
813
|
+
end
|
814
|
+
|
815
|
+
it 'cell g45 should equal 2014.0' do
|
816
|
+
sheet1.g45.should be_close(2014.0,201.4)
|
817
|
+
end
|
818
|
+
|
819
|
+
it 'cell h45 should equal 2015.0' do
|
820
|
+
sheet1.h45.should be_close(2015.0,201.5)
|
821
|
+
end
|
822
|
+
|
823
|
+
it 'cell i45 should equal 2016.0' do
|
824
|
+
sheet1.i45.should be_close(2016.0,201.6)
|
825
|
+
end
|
826
|
+
|
827
|
+
it 'cell j45 should equal 2017.0' do
|
828
|
+
sheet1.j45.should be_close(2017.0,201.7)
|
829
|
+
end
|
830
|
+
|
831
|
+
it 'cell k45 should equal 2018.0' do
|
832
|
+
sheet1.k45.should be_close(2018.0,201.8)
|
833
|
+
end
|
834
|
+
|
835
|
+
it 'cell l45 should equal 2019.0' do
|
836
|
+
sheet1.l45.should be_close(2019.0,201.9)
|
837
|
+
end
|
838
|
+
|
839
|
+
it 'cell m45 should equal 2020.0' do
|
840
|
+
sheet1.m45.should be_close(2020.0,202.0)
|
841
|
+
end
|
842
|
+
|
843
|
+
it 'cell f46 should equal 152.993434197398' do
|
844
|
+
sheet1.f46.should be_close(152.993434197398,15.2993434197398)
|
845
|
+
end
|
846
|
+
|
847
|
+
it 'cell g46 should equal 160.702977332249' do
|
848
|
+
sheet1.g46.should be_close(160.702977332249,16.0702977332249)
|
849
|
+
end
|
850
|
+
|
851
|
+
it 'cell h46 should equal 168.09790807387' do
|
852
|
+
sheet1.h46.should be_close(168.09790807387,16.809790807387)
|
853
|
+
end
|
854
|
+
|
855
|
+
it 'cell i46 should equal 175.186840792266' do
|
856
|
+
sheet1.i46.should be_close(175.186840792266,17.5186840792266)
|
857
|
+
end
|
858
|
+
|
859
|
+
it 'cell j46 should equal 181.978185329413' do
|
860
|
+
sheet1.j46.should be_close(181.978185329413,18.1978185329413)
|
861
|
+
end
|
862
|
+
|
863
|
+
it 'cell k46 should equal 188.480151508749' do
|
864
|
+
sheet1.k46.should be_close(188.480151508749,18.8480151508749)
|
865
|
+
end
|
866
|
+
|
867
|
+
it 'cell l46 should equal 194.700753549654' do
|
868
|
+
sheet1.l46.should be_close(194.700753549654,19.4700753549654)
|
869
|
+
end
|
870
|
+
|
871
|
+
it 'cell m46 should equal 200.647814388864' do
|
872
|
+
sheet1.m46.should be_close(200.647814388864,20.0647814388864)
|
873
|
+
end
|
874
|
+
|
875
|
+
end
|
876
|
+
|