Sha256: 7012c3f43a1546c730d1b80f4f0eb126aaeecbe6fa8e5b6d1ff4c22b396173d5
Contents?: true
Size: 859 Bytes
Versions: 18
Compression:
Stored size: 859 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionEscapes02 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_escapes02 @xlsx = 'escapes02.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet = workbook.add_worksheet worksheet.write('A1', %q{"<>'&}) worksheet.write_comment('B2', %q{<>&"'}) # Set the author to match the target XLSX file. worksheet.comments_author = %q{I am '"<>&} workbook.close compare_xlsx_for_regression( File.join(@regression_output, @xlsx), @xlsx, { 'xl/workbook.xml' => ['<workbookView'] } ) end end
Version data entries
18 entries across 18 versions & 1 rubygems