Mercurial > repos > public > sbplib_julia
comparison test/Grids/grid_test.jl @ 1343:fa3695f634de refactor/grids
More clean up of todos and notes
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 15 May 2023 22:37:33 +0200 |
parents | 79a2193da5c1 |
children | 86026367a9ff |
comparison
equal
deleted
inserted
replaced
1342:c0c1189c5f2e | 1343:fa3695f634de |
---|---|
54 @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) == map(x̄ -> @SVector[x̄[2], x̄[1]], g) | 54 @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) == map(x̄ -> @SVector[x̄[2], x̄[1]], g) |
55 | 55 |
56 # Multi-argument functions | 56 # Multi-argument functions |
57 f(x,y) = sin(x)*cos(y) | 57 f(x,y) = sin(x)*cos(y) |
58 @test eval_on(g, f) == map(x̄->f(x̄...), g) | 58 @test eval_on(g, f) == map(x̄->f(x̄...), g) |
59 | |
60 #TODO: inference test! | |
61 end | 59 end |
62 | 60 |
63 @testset "_ncomponents" begin | 61 @testset "_ncomponents" begin |
64 @test Grids._ncomponents(Int) == 1 | 62 @test Grids._ncomponents(Int) == 1 |
65 @test Grids._ncomponents(Float64) == 1 | 63 @test Grids._ncomponents(Float64) == 1 |