using ParametricCurves
using StaticArrays
using Test

@testset "ParametricCurves.jl" begin
    p = ParametricCurves.ParametricCurve((t -> cos(t), t -> sin(t)))
    @test ParametricCurves.tangent(p, 0.) ≈ SVector{2,Float64}(0, 1)
    @test ParametricCurves.normal(p, 0.) ≈ SVector{2,Float64}(-1, 0)
    @test ParametricCurves.radius(p, 0) ≈ 1.0
end
