summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/workbook/worksheet/tc_cell.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb
index 555fcff7..7188bc1d 100644
--- a/test/workbook/worksheet/tc_cell.rb
+++ b/test/workbook/worksheet/tc_cell.rb
@@ -275,6 +275,12 @@ class TestCell < Test::Unit::TestCase
assert_equal(sz, @c.row.worksheet.workbook.styles.fonts.first.sz)
end
+ def test_font_size_with_bolding
+ @c.style = @c.row.worksheet.workbook.styles.add_style :b => true
+ sz = @c.send(:font_size)
+ assert_equal(@c.row.worksheet.workbook.styles.fonts.first.sz * 1.5, @c.send(:font_size))
+ end
+
def test_font_size_with_custom_sz
@c.style = @c.row.worksheet.workbook.styles.add_style :sz => 52
sz = @c.send(:font_size)