### ----------------------------------------------------
### -- JavaScript::D3
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: t/06-named-colors.rakutest
### ----------------------------------------------------
use v6.d;

#use lib <. lib>;
use JavaScript::D3;

use Test;

plan *;

## 1
isa-ok js-d3-named-colors(), Map:D;

## 2
isa-ok js-d3-named-colors('black', 'red'), List:D;

## 3
isa-ok js-d3-named-colors(<black red pink>), List:D;

#note js-d3-named-colors(<black red pink>).map({ $_.subst('#', '0x').Int });

## 4
is js-d3-named-colors(<black red pink>, :pairs).all ~~ Pair:D, True;

done-testing


