summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJoe Kain <[email protected]>2012-03-11 13:59:20 -0700
committerJoe Kain <[email protected]>2012-03-12 00:56:48 -0700
commit32b9175cca482fe02a69ec7cc4e362d70c4e1324 (patch)
tree082c5ecdc9cd731a9354a66d5509fe17432dbfd9 /test
parentb8fcb4a6b78cf0419487353d098d12671909c7e2 (diff)
downloadcaxlsx-32b9175cca482fe02a69ec7cc4e362d70c4e1324.tar.gz
caxlsx-32b9175cca482fe02a69ec7cc4e362d70c4e1324.zip
test r_abs with a cell in column AA.
Diffstat (limited to 'test')
-rw-r--r--test/workbook/worksheet/tc_cell.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb
index 97a9951b..efaee3ac 100644
--- a/test/workbook/worksheet/tc_cell.rb
+++ b/test/workbook/worksheet/tc_cell.rb
@@ -9,6 +9,8 @@ class TestCell < Test::Unit::TestCase
p.workbook.styles.add_style :sz=>20
@row = @ws.add_row
@c = @row.add_cell 1, :type=>:float, :style=>1
+ @ws.add_row (0..26).map { |index| index }
+ @cAA = @ws["AA2"]
end
def test_initialize
@@ -42,6 +44,7 @@ class TestCell < Test::Unit::TestCase
def test_r_abs
assert_equal(@c.r_abs,"$A$1", "calculate absolute cell reference")
+ assert_equal(@cAA.r_abs,"$AA$2", "needs to accept multi-digit columns")
end
def test_style