Mercurial > repos > public > sbplib_julia
comparison test/Grids/grid_test.jl @ 1279:1157f889bf50 refactor/grids
Clear out some TBDs
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sun, 26 Feb 2023 21:20:52 +0100 |
| parents | 75a65db29be1 |
| children | 7de1df0aad6a |
comparison
equal
deleted
inserted
replaced
| 1278:4a0570f325ce | 1279:1157f889bf50 |
|---|---|
| 18 | 18 |
| 19 @testset "eval_on" begin | 19 @testset "eval_on" begin |
| 20 @test eval_on(ZeroDimGrid(@SVector[1.,2.]), x̄->x̄[1]+x̄[2]) isa LazyArray | 20 @test eval_on(ZeroDimGrid(@SVector[1.,2.]), x̄->x̄[1]+x̄[2]) isa LazyArray |
| 21 @test eval_on(ZeroDimGrid(@SVector[1.,2.]), x̄->x̄[1]+x̄[2]) == fill(3.) | 21 @test eval_on(ZeroDimGrid(@SVector[1.,2.]), x̄->x̄[1]+x̄[2]) == fill(3.) |
| 22 @test eval_on(ZeroDimGrid(@SVector[3.,2.]), x̄->x̄[1]+x̄[2]) == fill(5.) | 22 @test eval_on(ZeroDimGrid(@SVector[3.,2.]), x̄->x̄[1]+x̄[2]) == fill(5.) |
| 23 | |
| 24 @test eval_on(ZeroDimGrid(1.), x̄->2x̄) isa LazyArray | |
| 25 @test eval_on(ZeroDimGrid(1.), x̄->2x̄) == fill(2.) | |
| 23 | 26 |
| 24 @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) isa LazyArray | 27 @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) isa LazyArray |
| 25 @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) == 2 .* range(0,1,length=4) | 28 @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) == 2 .* range(0,1,length=4) |
| 26 | 29 |
| 27 | 30 |
