about summary refs log tree commit diff stats
path: root/t/01-hex2rgb.rakutest
blob: 313b9571785807b5a00b4146527f00af1724e073 (plain) (blame)
1
2
3
4
5
6
7
8
use Test;
use Octans::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";