Finding Algorithms
about summary refs log blame commit diff stats
path: root/t/01-hex2rgb.rakutest
blob: ca8bd59783889dd77945fefe0e8718451a0e8bd7 (plain) (tree)
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";