### ----------------------------------------------------
### -- eigenstates
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;
use eigenstates;

plan 5;

is-deeply eigenstates(1|2|3), (1,2,3), 'did we get the eigenstates';
is-deeply eigenstates(42),      (42,), 'did we get the object';
is-deeply eigenstates(Int),    (Int,), 'did we get the type object';

class C { has $.j is rw }

my $c = C.new;
$c.j = 1|2;
is-deeply eigenstates($c.j), (1,2), 'did we get the decontainerized attribute';

is-deeply eigenstates(Date.new(2022, any(1..3), *)),
  (Date.new(2022, 1, *), Date.new(2022, 2, *), Date.new(2022, 3, *)),
  'do we handle BOOTArray';

# vim: expandtab shiftwidth=4


