Excel-Writer-XLSX
view release on metacpan or search on metacpan
t/chart/sub_write_legend_pos.t view on Meta::CPAN
###############################################################################
#
# Tests for Excel::Writer::XLSX::Chart methods.
#
# Copyright 2000-2025, John McNamara, jmcnamara@cpan.org
#
# SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
#
use lib 't/lib';
use TestFunctions '_new_object';
use strict;
use warnings;
use Excel::Writer::XLSX::Chart;
use Test::More tests => 1;
###############################################################################
#
# Tests setup.
#
my $expected;
my $got;
my $caption;
my $chart;
###############################################################################
#
# Test the _write_legend_pos() method.
#
$caption = " \tChart: _write_legend_pos()";
$expected = '<c:legendPos val="r"/>';
$chart = _new_object( \$got, 'Excel::Writer::XLSX::Chart' );
$chart->_write_legend_pos( 'r' );
is( $got, $expected, $caption );
__END__
( run in 2.373 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )