File: schemes_oo.t

package info (click to toggle)
libcolor-calc-perl 1.074-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: perl: 399; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 4;
# use Test::NoWarnings;
use Color::Calc();

my $cc;

$cc = Color::Calc->new( 'OutputFormat' => 'html' );
isa_ok($cc, 'Color::Calc');
is($cc->get('green'), 'lime', 'X (default) ColorScheme');

$cc = Color::Calc->new( 'ColorScheme' => 'HTML', 'OutputFormat' => 'html' );
isa_ok($cc, 'Color::Calc');
is($cc->get('green'), 'green', 'HTML ColorScheme');