From 35edc87d2f8482363a30a86df409b447a2d24695 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 12 Jan 2022 12:46:51 +0530 Subject: Add basic tests --- t/01-hex2rgb.rakutest | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 t/01-hex2rgb.rakutest (limited to 't/01-hex2rgb.rakutest') diff --git a/t/01-hex2rgb.rakutest b/t/01-hex2rgb.rakutest new file mode 100644 index 0000000..313b957 --- /dev/null +++ b/t/01-hex2rgb.rakutest @@ -0,0 +1,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"; -- cgit 1.4.1-2-gfad0