From efa316961250ce2874e25d0d0de24c00216cacd4 Mon Sep 17 00:00:00 2001 From: "Colin B. Macdonald" Date: Mon, 13 May 2024 17:56:37 -0700 Subject: [PATCH] Laplace test on SymPy 1.12 only It bases on early SymPy too, just not 1.10 and 1.11 --- inst/@sym/laplace.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inst/@sym/laplace.m b/inst/@sym/laplace.m index 4f1ac8eb..26c9efc1 100644 --- a/inst/@sym/laplace.m +++ b/inst/@sym/laplace.m @@ -217,6 +217,9 @@ %!test %! % https://github.com/gnu-octave/symbolic/issues/1295 -%! syms t s -%! L = simplify (laplace (3*t*sin (4*t))); -%! assert (isAlways (L == 24*s / (s^2 + 16)^2)) +%! % fails on SymPy 1.10.* and 1.11.* +%! if (pycall_sympy__ ('return Version(spver) >= Version("1.12")')) +%! syms t s +%! L = simplify (laplace (3*t*sin (4*t))); +%! assert (isAlways (L == 24*s / (s^2 + 16)^2)) +%! end