Skip to content

Commit 273337f

Browse files
authored
Tests for ProductFun evaluation (#297)
1 parent 5477fd0 commit 273337f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/MultivariateTest.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ include("testutils.jl")
465465

466466
@test F(1.5,1.5im) hankelh1(0,10abs(1.5im-1.5))
467467

468-
P = ProductFun((x,y)->x^2*y^3, Chebyshev() Chebyshev())
468+
pf = (x,y)->x^2*y^3
469+
P = ProductFun(pf, Chebyshev() Chebyshev())
470+
@test P(0.1, 0.2) pf(0.1, 0.2)
469471
@test (Derivative() * P)(0.1, 0.2) ProductFun((x,y)->2x*y^3)(0.1, 0.2)
470472
@test (P * Derivative())(0.1, 0.2) ProductFun((x,y)->x^2*3y^2)(0.1, 0.2)
471473

0 commit comments

Comments
 (0)