diff 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
line wrap: on
line diff
--- a/test/Grids/grid_test.jl	Sun Feb 26 21:04:41 2023 +0100
+++ b/test/Grids/grid_test.jl	Sun Feb 26 21:20:52 2023 +0100
@@ -21,6 +21,9 @@
     @test eval_on(ZeroDimGrid(@SVector[1.,2.]), x̄->x̄[1]+x̄[2]) == fill(3.)
     @test eval_on(ZeroDimGrid(@SVector[3.,2.]), x̄->x̄[1]+x̄[2]) == fill(5.)
 
+    @test eval_on(ZeroDimGrid(1.), x̄->2x̄) isa LazyArray
+    @test eval_on(ZeroDimGrid(1.), x̄->2x̄) == fill(2.)
+
     @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) isa LazyArray
     @test eval_on(EquidistantGrid(range(0,1,length=4)), x->2x) == 2 .* range(0,1,length=4)