# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx'
require 'stringio'
class TestWriteSheetView4 < Test::Unit::TestCase
def setup
@workbook = WriteXLSX.new(StringIO.new)
@worksheet = @workbook.add_worksheet('')
end
def test_write_sheet_views_split_panes_15_0_1_0
@worksheet.select
@worksheet.split_panes(15, 0, 1, 0)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_30_0_2_0
@worksheet.select
@worksheet.split_panes(30, 0, 2, 0)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_105_0_7_0
@worksheet.select
@worksheet.split_panes(105, 0, 7, 0)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_0_843_0_1
@worksheet.select
@worksheet.split_panes(0, 8.43, 0, 1)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_0_1757_0_2
@worksheet.select
@worksheet.split_panes(0, 17.57, 0, 2)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_0_45_0_5
@worksheet.select
@worksheet.split_panes(0, 45, 0, 5)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_15_843_1_1
@worksheet.select
@worksheet.split_panes(15, 8.43, 1, 1)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
def test_write_sheet_views_split_panes_45_5414_3_6
@worksheet.select
@worksheet.split_panes(45, 54.14, 3, 6)
@worksheet.__send__('write_sheet_views')
result = @worksheet.instance_variable_get(:@writer).string
expected = ''
assert_equal(expected, result)
end
end