|
44 | 44 |
|
45 | 45 | @testset "Knot sets" begin |
46 | 46 | @testset "Simple tests" begin |
47 | | - @test ArbitraryKnotSet(3, [0.0, 1, 1, 3, 4, 6], 1, 3) == [0.0, 1, 1, 3, 4, 6, 6, 6] |
48 | | - @test LinearKnotSet(3, 0, 1, 2) == [0,0,0,0.5,1,1,1] |
49 | | - @test LinearKnotSet(2, 0, 1, 2, 1, 1) == [0,0.5,1] |
50 | | - @test ExpKnotSet(2, -4, 2, 7) == [0,0,0.0001,0.001,0.01,0.1,1,10,100,100] |
| 47 | + @test ArbitraryKnotSet(3, [0.0, 1, 1, 3, 4, 6], 1, 3) ≈ [0.0, 1, 1, 3, 4, 6, 6, 6] |
| 48 | + @test LinearKnotSet(3, 0, 1, 2) ≈ [0,0,0,0.5,1,1,1] |
| 49 | + @test LinearKnotSet(2, 0, 1, 2, 1, 1) ≈ [0,0.5,1] |
| 50 | + @test ExpKnotSet(2, -4, 2, 7) ≈ [0,0,0.0001,0.001,0.01,0.1,1,10,100,100] |
51 | 51 | end |
52 | 52 |
|
53 | 53 | @testset "k = $k" for k ∈ 1:6 |
|
0 commit comments