blob: ca8bd59783889dd77945fefe0e8718451a0e8bd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
use Test;
use Fornax::Hex2RGB;
plan 3;
is hex2rgb("#000000"), (0, 0, 0), "#000000";
is hex2rgb("#b753db"), (183, 83, 219).map(* / 255), "#b753db";
is hex2rgb("#ffffff"), (1, 1, 1), "#ffffff";
|