comparison test/Grids/grid_test.jl @ 1291:356ec6a72974 refactor/grids

Implement changes in SbpOperators
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Mar 2023 09:48:00 +0100
parents 3b7ebd135918
children 0713175a5743
comparison
equal deleted inserted replaced
1290:31d0b7638304 1291:356ec6a72974
50 @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) == map(x̄ -> @SVector[x̄[2], x̄[1]], g) 50 @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) == map(x̄ -> @SVector[x̄[2], x̄[1]], g)
51 51
52 # Multi-argument functions 52 # Multi-argument functions
53 f(x,y) = sin(x)*cos(y) 53 f(x,y) = sin(x)*cos(y)
54 @test eval_on(g, f) == map(x̄->f(x̄...), g) 54 @test eval_on(g, f) == map(x̄->f(x̄...), g)
55
56 #TODO: inference test!
55 end 57 end
56 58
57 @testset "_ncomponents" begin 59 @testset "_ncomponents" begin
58 @test Grids._ncomponents(Int) == 1 60 @test Grids._ncomponents(Int) == 1
59 @test Grids._ncomponents(Float64) == 1 61 @test Grids._ncomponents(Float64) == 1