File: input_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-- 485 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 9;
use Test::NoWarnings;
use Color::Calc();
my $cc = Color::Calc->new( 'OutputFormat' => 'hex' );

is($cc->mix		('F00','00F'),		'800080');
is($cc->mix		('#F00','#00F'),	'800080');
is($cc->mix		('FF0000','0000FF'),	'800080');
is($cc->mix		('#FF0000','#0000FF'),	'800080');
is($cc->mix		([255,0,0],[0,0,255]),	'800080');
is($cc->mix		('0255',0,0,0,0,255),	'800080');
is($cc->mix		(['0255',0,0],0,0,255),	'800080');
is($cc->mix		('0255',0,0,[0,0,255]),	'800080');