### ----------------------------------------------------
### -- Math::Splines
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: t/01-b-spline-basis-value.rakutest
### ----------------------------------------------------
use v6.d;
use Test;

#use lib <. lib>;
use Math::Splines;

plan *;

is b-spline-basis-value(3, 0, 0.5), 2/3;

is b-spline-basis-value(3, 1, 0.5), 1/6;

isa-ok b-spline-basis(:3degree, :0index, arg => 0.5), Numeric:D;

isa-ok b-spline-basis(3, 0, 0.5), Numeric:D;

done-testing;


