diff test/Grids/grid_test.jl @ 1273:7fab13c07412 refactor/grids

Allow multi-argument functions in eval_on
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 25 Feb 2023 22:57:00 +0100
parents 3637daad71e8
children dcd8654ca33b
line wrap: on
line diff
--- a/test/Grids/grid_test.jl	Sat Feb 25 22:49:43 2023 +0100
+++ b/test/Grids/grid_test.jl	Sat Feb 25 22:57:00 2023 +0100
@@ -39,10 +39,9 @@
     @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) isa LazyArray{SVector{2,Float64}}
     @test eval_on(g, x̄ -> @SVector[x̄[2], x̄[1]]) == map(x̄ -> @SVector[x̄[2], x̄[1]], g)
 
-
-
+    # Multi-argument functions
     f(x,y) = sin(x)*cos(y)
-    @test_broken eval_on(g, f) == map(p->f(p...), points(g))
+    @test eval_on(g, f) == map(x̄->f(x̄...), g)
 end
 
 @testset "getcomponent" begin