Sha256: 0171e2415f089660489e304356ac517b627742b821d0092f7073214dda3f9075

Contents?: true

Size: 840 Bytes

Versions: 19

Compression:

Stored size: 840 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionDate1904_02 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_date_1904_02
    @xlsx = 'date_1904_02.xlsx'
    workbook    = WriteXLSX.new(@io)

    workbook.set_1904

    worksheet   = workbook.add_worksheet
    format      = workbook.add_format(:num_format => 14)

    worksheet.set_column('A:A', 12)

    worksheet.write_date_time('A1', '1904-01-01T', format)
    worksheet.write_date_time('A2', '1906-09-27T', format)
    worksheet.write_date_time('A3', '1917-09-09T', format)
    worksheet.write_date_time('A4', '1931-05-19T', format)
    worksheet.write_date_time('A5', '2177-10-15T', format)
    worksheet.write_date_time('A6', '4641-11-27T', format)

    workbook.close
    compare_for_regression
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_date_1904_02.rb
write_xlsx-1.09.3 test/regression/test_date_1904_02.rb
write_xlsx-1.09.2 test/regression/test_date_1904_02.rb
write_xlsx-1.09.1 test/regression/test_date_1904_02.rb
write_xlsx-1.09.0 test/regression/test_date_1904_02.rb
write_xlsx-1.08.2 test/regression/test_date_1904_02.rb
write_xlsx-1.08.1 test/regression/test_date_1904_02.rb
write_xlsx-1.08.0 test/regression/test_date_1904_02.rb
write_xlsx-1.07.0 test/regression/test_date_1904_02.rb
write_xlsx-1.04.0 test/regression/test_date_1904_02.rb
write_xlsx-1.02.0 test/regression/test_date_1904_02.rb
write_xlsx-1.01.0 test/regression/test_date_1904_02.rb
write_xlsx-1.00.0 test/regression/test_date_1904_02.rb
write_xlsx-0.99.0 test/regression/test_date_1904_02.rb
write_xlsx-0.97.0 test/regression/test_date_1904_02.rb
write_xlsx-0.90.0 test/regression/test_date_1904_02.rb
write_xlsx-0.89.0 test/regression/test_date_1904_02.rb
write_xlsx-0.88.0 test/regression/test_date_1904_02.rb
write_xlsx-0.87.0 test/regression/test_date_1904_02.rb