Sha256: 0f0b4e3fb36d051ae318fb5b7ab9b026c111778a828348446369e70b602a36cc
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
require_relative 'test_helper' describe "FastExcel text_width" do it "should calculate text width" do workbook = FastExcel.open(constant_memory: false) sheet = workbook.add_worksheet sheet.auto_width = true sheet.append_row([ "tini", "Longer", "Some longer text!", "This gem is FFI binding for libxlsxwriter C library" ]) assert_equal(sheet.calculated_column_widths, {0 => 3.52, 1 => 5.28, 2 => 14.96, 3 => 44.88}) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fast_excel-0.4.1 | test/auto_width_test.rb |
fast_excel-0.4.0 | test/auto_width_test.rb |
fast_excel-0.3.0 | test/auto_width_test.rb |
fast_excel-0.2.6 | test/auto_width_test.rb |