aboutsummaryrefslogtreecommitdiffstats
path: root/test/roo/test_excelx.rb
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:40:16 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:40:16 -0500
commitb0bc0772184c68b8d4baac678c5fb707dc23af7f (patch)
tree62c95563dd5d57e9db8268227acf4cc91e75af04 /test/roo/test_excelx.rb
parente44f5d5d1935ee40a6bbb232e649d91e8aa9ce74 (diff)
parentae103e148eb3c15606b816505492d870ef062ad3 (diff)
Update upstream source from tag 'upstream/2.10.0'
Update to upstream version '2.10.0' with Debian dir 3c0f78b1f632920ec992d7bf7e43a8b0ced0b21d
Diffstat (limited to 'test/roo/test_excelx.rb')
-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