### ----------------------------------------------------
### -- Algorithm::KDimensionalTree
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: t/02-gist.rakutest
### ----------------------------------------------------
#!/usr/bin/env raku
use v6.d;

use lib <. lib>;

use Algorithm::KDimensionalTree;

use Test;

plan *;

## 1
ok Algorithm::KDimensionalTree.gist;

## 2
is Algorithm::KDimensionalTree.gist, '(KDimensionalTree)';

## 3
my @points = (2.rand xx 30).Array;
my $obj = Algorithm::KDimensionalTree.new(:@points, distance-function => Whatever);
is $obj.gist, 'Algorithm::KDimensionalTree(points => 30, distance-function => &euclidean-distance)';

done-testing;


