test/test_roo.rb in roo-0.1.0 vs test/test_roo.rb in roo-0.1.1

- old
+ new

@@ -2,11 +2,11 @@ class TestRoo < Test::Unit::TestCase def test_sheets oo = Openoffice.new("test/numbers1.ods") - assert_equal ["Tabelle1","Sheet2","Sheet3"], oo.sheets + assert_equal ["Tabelle1","Name of Sheet 2","Sheet3"], oo.sheets end def test_cell oo = Openoffice.new("test/numbers1.ods") oo.default_sheet = oo.sheets.first @@ -108,7 +108,24 @@ def test_first_column_as_letter oo = Openoffice.new("test/numbers1.ods") oo.default_sheet = oo.sheets.first assert_equal 'A', oo.first_column_as_letter + end + + def test_sheetname + oo = Openoffice.new("test/numbers1.ods") + oo.default_sheet = "Name of Sheet 2" + assert_equal 'I am sheet 2', oo.cell('C',5) + end + + def test_boundaries + oo = Openoffice.new("test/numbers1.ods") + oo.default_sheet = "Name of Sheet 2" + assert true + assert_equal 2, oo.first_column + assert_equal 'B', oo.first_column_as_letter + assert_equal 5, oo.first_row + assert_equal 'E', oo.last_column_as_letter + assert_equal 14, oo.last_row end end