rubyfromexcel 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/ruby-versions/test1-ruby/sheets/sheet1.rb +7 -0
- data/examples/ruby-versions/test1-ruby/sheets/sheet2.rb +6 -0
- data/examples/ruby-versions/test1-ruby/specs/sheet1_rspec.rb +12 -0
- data/examples/ruby-versions/test1-ruby/specs/sheet2_rspec.rb +12 -0
- data/examples/ruby-versions/test1-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet1.rb +1334 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet2.rb +25 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet3.rb +3703 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet1_rspec.rb +648 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet2_rspec.rb +24 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet3_rspec.rb +11364 -0
- data/examples/ruby-versions/test2-ruby/spreadsheet.rb +9 -0
- data/examples/sheets/test1.xlsx +0 -0
- data/examples/sheets/test2.xlsx +0 -0
- data/examples/sheets/~$test1.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/checkpoint/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/checkpoint/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/comments1.xml +5 -0
- data/examples/unzipped-sheets/checkpoint/xl/comments2.xml +5 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing2.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing2.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing1.vml +47 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing2.vml +47 -0
- data/examples/unzipped-sheets/checkpoint/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet2.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/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/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/examples/unzipped-sheets/test1/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/test1/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/test1/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/test2/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/test2/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/test2/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart3.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart4.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/tables/table1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet3.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet3.xml +2 -0
- data/lib/formulae/parse/formula_peg.rb +4 -3
- data/lib/formulae/parse/formula_peg.txt +3 -3
- data/lib/formulae/run/reference.rb +1 -1
- data/spec/formula_peg_spec.rb +13 -0
- metadata +152 -9
@@ -0,0 +1,648 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require_relative '../spreadsheet'
|
3
|
+
# Control
|
4
|
+
describe 'Sheet1' do
|
5
|
+
def sheet1; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet1; end
|
6
|
+
|
7
|
+
it 'cell bd8 should equal :ref' do
|
8
|
+
sheet1.bd8.should == :ref
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'cell bi8 should equal :ref' do
|
12
|
+
sheet1.bi8.should == :ref
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'cell bj8 should equal :ref' do
|
16
|
+
sheet1.bj8.should == :ref
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'cell bk8 should equal :ref' do
|
20
|
+
sheet1.bk8.should == :ref
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'cell bl8 should equal :ref' do
|
24
|
+
sheet1.bl8.should == :ref
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'cell bd9 should equal :ref' do
|
28
|
+
sheet1.bd9.should == :ref
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'cell bg9 should equal :ref' do
|
32
|
+
sheet1.bg9.should == :ref
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'cell bi9 should equal :ref' do
|
36
|
+
sheet1.bi9.should == :ref
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'cell bj9 should equal :ref' do
|
40
|
+
sheet1.bj9.should == :ref
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'cell bk9 should equal :ref' do
|
44
|
+
sheet1.bk9.should == :ref
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'cell bl9 should equal :ref' do
|
48
|
+
sheet1.bl9.should == :ref
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'cell bd10 should equal :ref' do
|
52
|
+
sheet1.bd10.should == :ref
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'cell bg10 should equal :ref' do
|
56
|
+
sheet1.bg10.should == :ref
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'cell bi10 should equal :ref' do
|
60
|
+
sheet1.bi10.should == :ref
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'cell bj10 should equal :ref' do
|
64
|
+
sheet1.bj10.should == :ref
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'cell bk10 should equal :ref' do
|
68
|
+
sheet1.bk10.should == :ref
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'cell bl10 should equal :ref' do
|
72
|
+
sheet1.bl10.should == :ref
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'cell bh21 should equal "TWh / year"' do
|
76
|
+
sheet1.bh21.should == "TWh / year"
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'cell be22 should equal :ref' do
|
80
|
+
sheet1.be22.should == :ref
|
81
|
+
end
|
82
|
+
|
83
|
+
it 'cell bi22 should equal :ref' do
|
84
|
+
sheet1.bi22.should == :ref
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'cell bj22 should equal :ref' do
|
88
|
+
sheet1.bj22.should == :ref
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'cell bk22 should equal :ref' do
|
92
|
+
sheet1.bk22.should == :ref
|
93
|
+
end
|
94
|
+
|
95
|
+
it 'cell bl22 should equal :ref' do
|
96
|
+
sheet1.bl22.should == :ref
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'cell be23 should equal :ref' do
|
100
|
+
sheet1.be23.should == :ref
|
101
|
+
end
|
102
|
+
|
103
|
+
it 'cell bi23 should equal :ref' do
|
104
|
+
sheet1.bi23.should == :ref
|
105
|
+
end
|
106
|
+
|
107
|
+
it 'cell bj23 should equal :ref' do
|
108
|
+
sheet1.bj23.should == :ref
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'cell bk23 should equal :ref' do
|
112
|
+
sheet1.bk23.should == :ref
|
113
|
+
end
|
114
|
+
|
115
|
+
it 'cell bl23 should equal :ref' do
|
116
|
+
sheet1.bl23.should == :ref
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'cell be24 should equal :ref' do
|
120
|
+
sheet1.be24.should == :ref
|
121
|
+
end
|
122
|
+
|
123
|
+
it 'cell bi24 should equal :ref' do
|
124
|
+
sheet1.bi24.should == :ref
|
125
|
+
end
|
126
|
+
|
127
|
+
it 'cell bj24 should equal :ref' do
|
128
|
+
sheet1.bj24.should == :ref
|
129
|
+
end
|
130
|
+
|
131
|
+
it 'cell bk24 should equal :ref' do
|
132
|
+
sheet1.bk24.should == :ref
|
133
|
+
end
|
134
|
+
|
135
|
+
it 'cell bl24 should equal :ref' do
|
136
|
+
sheet1.bl24.should == :ref
|
137
|
+
end
|
138
|
+
|
139
|
+
it 'cell be25 should equal :ref' do
|
140
|
+
sheet1.be25.should == :ref
|
141
|
+
end
|
142
|
+
|
143
|
+
it 'cell bi25 should equal :ref' do
|
144
|
+
sheet1.bi25.should == :ref
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'cell bj25 should equal :ref' do
|
148
|
+
sheet1.bj25.should == :ref
|
149
|
+
end
|
150
|
+
|
151
|
+
it 'cell bk25 should equal :ref' do
|
152
|
+
sheet1.bk25.should == :ref
|
153
|
+
end
|
154
|
+
|
155
|
+
it 'cell bl25 should equal :ref' do
|
156
|
+
sheet1.bl25.should == :ref
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'cell be26 should equal :ref' do
|
160
|
+
sheet1.be26.should == :ref
|
161
|
+
end
|
162
|
+
|
163
|
+
it 'cell bi26 should equal :ref' do
|
164
|
+
sheet1.bi26.should == :ref
|
165
|
+
end
|
166
|
+
|
167
|
+
it 'cell bj26 should equal :ref' do
|
168
|
+
sheet1.bj26.should == :ref
|
169
|
+
end
|
170
|
+
|
171
|
+
it 'cell bk26 should equal :ref' do
|
172
|
+
sheet1.bk26.should == :ref
|
173
|
+
end
|
174
|
+
|
175
|
+
it 'cell bl26 should equal :ref' do
|
176
|
+
sheet1.bl26.should == :ref
|
177
|
+
end
|
178
|
+
|
179
|
+
it 'cell bh30 should equal "TWh / year"' do
|
180
|
+
sheet1.bh30.should == "TWh / year"
|
181
|
+
end
|
182
|
+
|
183
|
+
it 'cell bi33 should equal :ref' do
|
184
|
+
sheet1.bi33.should == :ref
|
185
|
+
end
|
186
|
+
|
187
|
+
it 'cell bj33 should equal :ref' do
|
188
|
+
sheet1.bj33.should == :ref
|
189
|
+
end
|
190
|
+
|
191
|
+
it 'cell bk33 should equal :ref' do
|
192
|
+
sheet1.bk33.should == :ref
|
193
|
+
end
|
194
|
+
|
195
|
+
it 'cell bl33 should equal :ref' do
|
196
|
+
sheet1.bl33.should == :ref
|
197
|
+
end
|
198
|
+
|
199
|
+
it 'cell bi34 should equal :ref' do
|
200
|
+
sheet1.bi34.should == :ref
|
201
|
+
end
|
202
|
+
|
203
|
+
it 'cell bj34 should equal :ref' do
|
204
|
+
sheet1.bj34.should == :ref
|
205
|
+
end
|
206
|
+
|
207
|
+
it 'cell bk34 should equal :ref' do
|
208
|
+
sheet1.bk34.should == :ref
|
209
|
+
end
|
210
|
+
|
211
|
+
it 'cell bl34 should equal :ref' do
|
212
|
+
sheet1.bl34.should == :ref
|
213
|
+
end
|
214
|
+
|
215
|
+
it 'cell bi35 should equal :ref' do
|
216
|
+
sheet1.bi35.should == :ref
|
217
|
+
end
|
218
|
+
|
219
|
+
it 'cell bj35 should equal :ref' do
|
220
|
+
sheet1.bj35.should == :ref
|
221
|
+
end
|
222
|
+
|
223
|
+
it 'cell bk35 should equal :ref' do
|
224
|
+
sheet1.bk35.should == :ref
|
225
|
+
end
|
226
|
+
|
227
|
+
it 'cell bl35 should equal :ref' do
|
228
|
+
sheet1.bl35.should == :ref
|
229
|
+
end
|
230
|
+
|
231
|
+
it 'cell as36 should equal :ref' do
|
232
|
+
sheet1.as36.should == :ref
|
233
|
+
end
|
234
|
+
|
235
|
+
it 'cell aw36 should equal :ref' do
|
236
|
+
sheet1.aw36.should == :ref
|
237
|
+
end
|
238
|
+
|
239
|
+
it 'cell ax36 should equal :ref' do
|
240
|
+
sheet1.ax36.should == :ref
|
241
|
+
end
|
242
|
+
|
243
|
+
it 'cell ay36 should equal :ref' do
|
244
|
+
sheet1.ay36.should == :ref
|
245
|
+
end
|
246
|
+
|
247
|
+
it 'cell bi36 should equal :ref' do
|
248
|
+
sheet1.bi36.should == :ref
|
249
|
+
end
|
250
|
+
|
251
|
+
it 'cell bj36 should equal :ref' do
|
252
|
+
sheet1.bj36.should == :ref
|
253
|
+
end
|
254
|
+
|
255
|
+
it 'cell bk36 should equal :ref' do
|
256
|
+
sheet1.bk36.should == :ref
|
257
|
+
end
|
258
|
+
|
259
|
+
it 'cell bl36 should equal :ref' do
|
260
|
+
sheet1.bl36.should == :ref
|
261
|
+
end
|
262
|
+
|
263
|
+
it 'cell as37 should equal :ref' do
|
264
|
+
sheet1.as37.should == :ref
|
265
|
+
end
|
266
|
+
|
267
|
+
it 'cell aw37 should equal :ref' do
|
268
|
+
sheet1.aw37.should == :ref
|
269
|
+
end
|
270
|
+
|
271
|
+
it 'cell ax37 should equal :ref' do
|
272
|
+
sheet1.ax37.should == :ref
|
273
|
+
end
|
274
|
+
|
275
|
+
it 'cell ay37 should equal :ref' do
|
276
|
+
sheet1.ay37.should == :ref
|
277
|
+
end
|
278
|
+
|
279
|
+
it 'cell bi37 should equal :ref' do
|
280
|
+
sheet1.bi37.should == :ref
|
281
|
+
end
|
282
|
+
|
283
|
+
it 'cell bj37 should equal :ref' do
|
284
|
+
sheet1.bj37.should == :ref
|
285
|
+
end
|
286
|
+
|
287
|
+
it 'cell bk37 should equal :ref' do
|
288
|
+
sheet1.bk37.should == :ref
|
289
|
+
end
|
290
|
+
|
291
|
+
it 'cell bl37 should equal :ref' do
|
292
|
+
sheet1.bl37.should == :ref
|
293
|
+
end
|
294
|
+
|
295
|
+
it 'cell as38 should equal :ref' do
|
296
|
+
sheet1.as38.should == :ref
|
297
|
+
end
|
298
|
+
|
299
|
+
it 'cell aw38 should equal :ref' do
|
300
|
+
sheet1.aw38.should == :ref
|
301
|
+
end
|
302
|
+
|
303
|
+
it 'cell ax38 should equal :ref' do
|
304
|
+
sheet1.ax38.should == :ref
|
305
|
+
end
|
306
|
+
|
307
|
+
it 'cell ay38 should equal :ref' do
|
308
|
+
sheet1.ay38.should == :ref
|
309
|
+
end
|
310
|
+
|
311
|
+
it 'cell bi38 should equal :ref' do
|
312
|
+
sheet1.bi38.should == :ref
|
313
|
+
end
|
314
|
+
|
315
|
+
it 'cell bj38 should equal :ref' do
|
316
|
+
sheet1.bj38.should == :ref
|
317
|
+
end
|
318
|
+
|
319
|
+
it 'cell bk38 should equal :ref' do
|
320
|
+
sheet1.bk38.should == :ref
|
321
|
+
end
|
322
|
+
|
323
|
+
it 'cell bl38 should equal :ref' do
|
324
|
+
sheet1.bl38.should == :ref
|
325
|
+
end
|
326
|
+
|
327
|
+
it 'cell as39 should equal :ref' do
|
328
|
+
sheet1.as39.should == :ref
|
329
|
+
end
|
330
|
+
|
331
|
+
it 'cell aw39 should equal :ref' do
|
332
|
+
sheet1.aw39.should == :ref
|
333
|
+
end
|
334
|
+
|
335
|
+
it 'cell ax39 should equal :ref' do
|
336
|
+
sheet1.ax39.should == :ref
|
337
|
+
end
|
338
|
+
|
339
|
+
it 'cell ay39 should equal :ref' do
|
340
|
+
sheet1.ay39.should == :ref
|
341
|
+
end
|
342
|
+
|
343
|
+
it 'cell bi39 should equal :ref' do
|
344
|
+
sheet1.bi39.should == :ref
|
345
|
+
end
|
346
|
+
|
347
|
+
it 'cell bj39 should equal :ref' do
|
348
|
+
sheet1.bj39.should == :ref
|
349
|
+
end
|
350
|
+
|
351
|
+
it 'cell bk39 should equal :ref' do
|
352
|
+
sheet1.bk39.should == :ref
|
353
|
+
end
|
354
|
+
|
355
|
+
it 'cell bl39 should equal :ref' do
|
356
|
+
sheet1.bl39.should == :ref
|
357
|
+
end
|
358
|
+
|
359
|
+
it 'cell as40 should equal :ref' do
|
360
|
+
sheet1.as40.should == :ref
|
361
|
+
end
|
362
|
+
|
363
|
+
it 'cell aw40 should equal :ref' do
|
364
|
+
sheet1.aw40.should == :ref
|
365
|
+
end
|
366
|
+
|
367
|
+
it 'cell ax40 should equal :ref' do
|
368
|
+
sheet1.ax40.should == :ref
|
369
|
+
end
|
370
|
+
|
371
|
+
it 'cell ay40 should equal :ref' do
|
372
|
+
sheet1.ay40.should == :ref
|
373
|
+
end
|
374
|
+
|
375
|
+
it 'cell as41 should equal :ref' do
|
376
|
+
sheet1.as41.should == :ref
|
377
|
+
end
|
378
|
+
|
379
|
+
it 'cell aw41 should equal :ref' do
|
380
|
+
sheet1.aw41.should == :ref
|
381
|
+
end
|
382
|
+
|
383
|
+
it 'cell ax41 should equal :ref' do
|
384
|
+
sheet1.ax41.should == :ref
|
385
|
+
end
|
386
|
+
|
387
|
+
it 'cell ay41 should equal :ref' do
|
388
|
+
sheet1.ay41.should == :ref
|
389
|
+
end
|
390
|
+
|
391
|
+
it 'cell bi41 should equal :ref' do
|
392
|
+
sheet1.bi41.should == :ref
|
393
|
+
end
|
394
|
+
|
395
|
+
it 'cell bj41 should equal :ref' do
|
396
|
+
sheet1.bj41.should == :ref
|
397
|
+
end
|
398
|
+
|
399
|
+
it 'cell bk41 should equal :ref' do
|
400
|
+
sheet1.bk41.should == :ref
|
401
|
+
end
|
402
|
+
|
403
|
+
it 'cell bl41 should equal :ref' do
|
404
|
+
sheet1.bl41.should == :ref
|
405
|
+
end
|
406
|
+
|
407
|
+
it 'cell as42 should equal :ref' do
|
408
|
+
sheet1.as42.should == :ref
|
409
|
+
end
|
410
|
+
|
411
|
+
it 'cell aw42 should equal :ref' do
|
412
|
+
sheet1.aw42.should == :ref
|
413
|
+
end
|
414
|
+
|
415
|
+
it 'cell ax42 should equal :ref' do
|
416
|
+
sheet1.ax42.should == :ref
|
417
|
+
end
|
418
|
+
|
419
|
+
it 'cell ay42 should equal :ref' do
|
420
|
+
sheet1.ay42.should == :ref
|
421
|
+
end
|
422
|
+
|
423
|
+
it 'cell bi42 should equal :ref' do
|
424
|
+
sheet1.bi42.should == :ref
|
425
|
+
end
|
426
|
+
|
427
|
+
it 'cell bj42 should equal :ref' do
|
428
|
+
sheet1.bj42.should == :ref
|
429
|
+
end
|
430
|
+
|
431
|
+
it 'cell bk42 should equal :ref' do
|
432
|
+
sheet1.bk42.should == :ref
|
433
|
+
end
|
434
|
+
|
435
|
+
it 'cell bl42 should equal :ref' do
|
436
|
+
sheet1.bl42.should == :ref
|
437
|
+
end
|
438
|
+
|
439
|
+
it 'cell bi43 should equal :ref' do
|
440
|
+
sheet1.bi43.should == :ref
|
441
|
+
end
|
442
|
+
|
443
|
+
it 'cell bj43 should equal :ref' do
|
444
|
+
sheet1.bj43.should == :ref
|
445
|
+
end
|
446
|
+
|
447
|
+
it 'cell bk43 should equal :ref' do
|
448
|
+
sheet1.bk43.should == :ref
|
449
|
+
end
|
450
|
+
|
451
|
+
it 'cell bl43 should equal :ref' do
|
452
|
+
sheet1.bl43.should == :ref
|
453
|
+
end
|
454
|
+
|
455
|
+
it 'cell as44 should equal :ref' do
|
456
|
+
sheet1.as44.should == :ref
|
457
|
+
end
|
458
|
+
|
459
|
+
it 'cell aw44 should equal :ref' do
|
460
|
+
sheet1.aw44.should == :ref
|
461
|
+
end
|
462
|
+
|
463
|
+
it 'cell ax44 should equal :ref' do
|
464
|
+
sheet1.ax44.should == :ref
|
465
|
+
end
|
466
|
+
|
467
|
+
it 'cell ay44 should equal :ref' do
|
468
|
+
sheet1.ay44.should == :ref
|
469
|
+
end
|
470
|
+
|
471
|
+
it 'cell bi44 should equal :ref' do
|
472
|
+
sheet1.bi44.should == :ref
|
473
|
+
end
|
474
|
+
|
475
|
+
it 'cell bj44 should equal :ref' do
|
476
|
+
sheet1.bj44.should == :ref
|
477
|
+
end
|
478
|
+
|
479
|
+
it 'cell bk44 should equal :ref' do
|
480
|
+
sheet1.bk44.should == :ref
|
481
|
+
end
|
482
|
+
|
483
|
+
it 'cell bl44 should equal :ref' do
|
484
|
+
sheet1.bl44.should == :ref
|
485
|
+
end
|
486
|
+
|
487
|
+
it 'cell as45 should equal :ref' do
|
488
|
+
sheet1.as45.should == :ref
|
489
|
+
end
|
490
|
+
|
491
|
+
it 'cell aw45 should equal :ref' do
|
492
|
+
sheet1.aw45.should == :ref
|
493
|
+
end
|
494
|
+
|
495
|
+
it 'cell ax45 should equal :ref' do
|
496
|
+
sheet1.ax45.should == :ref
|
497
|
+
end
|
498
|
+
|
499
|
+
it 'cell ay45 should equal :ref' do
|
500
|
+
sheet1.ay45.should == :ref
|
501
|
+
end
|
502
|
+
|
503
|
+
it 'cell bi45 should equal :ref' do
|
504
|
+
sheet1.bi45.should == :ref
|
505
|
+
end
|
506
|
+
|
507
|
+
it 'cell bj45 should equal :ref' do
|
508
|
+
sheet1.bj45.should == :ref
|
509
|
+
end
|
510
|
+
|
511
|
+
it 'cell bk45 should equal :ref' do
|
512
|
+
sheet1.bk45.should == :ref
|
513
|
+
end
|
514
|
+
|
515
|
+
it 'cell bl45 should equal :ref' do
|
516
|
+
sheet1.bl45.should == :ref
|
517
|
+
end
|
518
|
+
|
519
|
+
it 'cell as46 should equal :ref' do
|
520
|
+
sheet1.as46.should == :ref
|
521
|
+
end
|
522
|
+
|
523
|
+
it 'cell aw46 should equal :ref' do
|
524
|
+
sheet1.aw46.should == :ref
|
525
|
+
end
|
526
|
+
|
527
|
+
it 'cell ax46 should equal :ref' do
|
528
|
+
sheet1.ax46.should == :ref
|
529
|
+
end
|
530
|
+
|
531
|
+
it 'cell ay46 should equal :ref' do
|
532
|
+
sheet1.ay46.should == :ref
|
533
|
+
end
|
534
|
+
|
535
|
+
it 'cell aw47 should equal :ref' do
|
536
|
+
sheet1.aw47.should == :ref
|
537
|
+
end
|
538
|
+
|
539
|
+
it 'cell ax47 should equal :ref' do
|
540
|
+
sheet1.ax47.should == :ref
|
541
|
+
end
|
542
|
+
|
543
|
+
it 'cell ay47 should equal :ref' do
|
544
|
+
sheet1.ay47.should == :ref
|
545
|
+
end
|
546
|
+
|
547
|
+
it 'cell bi47 should equal :ref' do
|
548
|
+
sheet1.bi47.should == :ref
|
549
|
+
end
|
550
|
+
|
551
|
+
it 'cell bj47 should equal :ref' do
|
552
|
+
sheet1.bj47.should == :ref
|
553
|
+
end
|
554
|
+
|
555
|
+
it 'cell bk47 should equal :ref' do
|
556
|
+
sheet1.bk47.should == :ref
|
557
|
+
end
|
558
|
+
|
559
|
+
it 'cell bl47 should equal :ref' do
|
560
|
+
sheet1.bl47.should == :ref
|
561
|
+
end
|
562
|
+
|
563
|
+
it 'cell aw48 should equal :ref' do
|
564
|
+
sheet1.aw48.should == :ref
|
565
|
+
end
|
566
|
+
|
567
|
+
it 'cell bi48 should equal :ref' do
|
568
|
+
sheet1.bi48.should == :ref
|
569
|
+
end
|
570
|
+
|
571
|
+
it 'cell bj48 should equal :ref' do
|
572
|
+
sheet1.bj48.should == :ref
|
573
|
+
end
|
574
|
+
|
575
|
+
it 'cell bk48 should equal :ref' do
|
576
|
+
sheet1.bk48.should == :ref
|
577
|
+
end
|
578
|
+
|
579
|
+
it 'cell bl48 should equal :ref' do
|
580
|
+
sheet1.bl48.should == :ref
|
581
|
+
end
|
582
|
+
|
583
|
+
it 'cell bi49 should equal :ref' do
|
584
|
+
sheet1.bi49.should == :ref
|
585
|
+
end
|
586
|
+
|
587
|
+
it 'cell bj49 should equal :ref' do
|
588
|
+
sheet1.bj49.should == :ref
|
589
|
+
end
|
590
|
+
|
591
|
+
it 'cell bk49 should equal :ref' do
|
592
|
+
sheet1.bk49.should == :ref
|
593
|
+
end
|
594
|
+
|
595
|
+
it 'cell bl49 should equal :ref' do
|
596
|
+
sheet1.bl49.should == :ref
|
597
|
+
end
|
598
|
+
|
599
|
+
it 'cell bi50 should equal :ref' do
|
600
|
+
sheet1.bi50.should == :ref
|
601
|
+
end
|
602
|
+
|
603
|
+
it 'cell bj50 should equal :ref' do
|
604
|
+
sheet1.bj50.should == :ref
|
605
|
+
end
|
606
|
+
|
607
|
+
it 'cell bk50 should equal :ref' do
|
608
|
+
sheet1.bk50.should == :ref
|
609
|
+
end
|
610
|
+
|
611
|
+
it 'cell bl50 should equal :ref' do
|
612
|
+
sheet1.bl50.should == :ref
|
613
|
+
end
|
614
|
+
|
615
|
+
it 'cell bi51 should equal :ref' do
|
616
|
+
sheet1.bi51.should == :ref
|
617
|
+
end
|
618
|
+
|
619
|
+
it 'cell bj51 should equal :ref' do
|
620
|
+
sheet1.bj51.should == :ref
|
621
|
+
end
|
622
|
+
|
623
|
+
it 'cell bk51 should equal :ref' do
|
624
|
+
sheet1.bk51.should == :ref
|
625
|
+
end
|
626
|
+
|
627
|
+
it 'cell bl51 should equal :ref' do
|
628
|
+
sheet1.bl51.should == :ref
|
629
|
+
end
|
630
|
+
|
631
|
+
it 'cell bi52 should equal :ref' do
|
632
|
+
sheet1.bi52.should == :ref
|
633
|
+
end
|
634
|
+
|
635
|
+
it 'cell bj52 should equal :ref' do
|
636
|
+
sheet1.bj52.should == :ref
|
637
|
+
end
|
638
|
+
|
639
|
+
it 'cell bk52 should equal :ref' do
|
640
|
+
sheet1.bk52.should == :ref
|
641
|
+
end
|
642
|
+
|
643
|
+
it 'cell bl52 should equal :ref' do
|
644
|
+
sheet1.bl52.should == :ref
|
645
|
+
end
|
646
|
+
|
647
|
+
end
|
648
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require_relative '../spreadsheet'
|
3
|
+
# Preferences
|
4
|
+
describe 'Sheet2' do
|
5
|
+
def sheet2; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet2; end
|
6
|
+
|
7
|
+
it 'cell f3 should equal :ref' do
|
8
|
+
sheet2.f3.should == :ref
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'cell f5 should equal :ref' do
|
12
|
+
sheet2.f5.should == :ref
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'cell f7 should equal :ref' do
|
16
|
+
sheet2.f7.should == :ref
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'cell f9 should equal :ref' do
|
20
|
+
sheet2.f9.should == :ref
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|