aboutsummaryrefslogtreecommitdiffstats
path: root/test/roo
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:39:56 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:39:56 -0500
commitae103e148eb3c15606b816505492d870ef062ad3 (patch)
treeb7916225d76ac8d1db28feff7aa46a4ee672b3dc /test/roo
parentf5fb17e5a64b215644bc104f099dad8c2f10c37d (diff)
New upstream version 2.10.0.upstream/2.10.0
Diffstat (limited to 'test/roo')
-rw-r--r--test/roo/test_excelx.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/roo/test_excelx.rb b/test/roo/test_excelx.rb
index 61161f0..c90cd8c 100644
--- a/test/roo/test_excelx.rb
+++ b/test/roo/test_excelx.rb
@@ -341,6 +341,15 @@ class TestRworkbookExcelx < Minitest::Test
assert_equal "Example richtext", xlsx.cell("b", 1)
end
+ def test_implicit_coordinates
+ xlsx = roo_class.new(File.join(TESTDIR, 'implicit_coordinates.xlsx'))
+
+ assert_equal 'Test', xlsx.cell('a', 1)
+ assert_equal 'A2', xlsx.cell('a', 2)
+ assert_equal 'B2', xlsx.cell(2, 2)
+ assert_equal 'C2', xlsx.cell('c', 2)
+ end
+
def roo_class
Roo::Excelx
end