From 13175834715173b57c027abe43ad84fe919288dd Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Fri, 26 May 2023 16:54:41 +0200 Subject: [PATCH] add two Python unit tests to JS --- Examples/test-suite/inplaceadd.i | 2 +- Examples/test-suite/javascript/Makefile.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/inplaceadd.i b/Examples/test-suite/inplaceadd.i index e6dad1601..c84603c72 100644 --- a/Examples/test-suite/inplaceadd.i +++ b/Examples/test-suite/inplaceadd.i @@ -3,7 +3,7 @@ #include %} -#if defined(SWIG_JAVASCRIPT_V8) +#if defined(SWIGJAVASCRIPT) %rename(addTo) operator +=; %rename(subFrom) operator -=; %rename(mulTo) operator *=; diff --git a/Examples/test-suite/javascript/Makefile.in b/Examples/test-suite/javascript/Makefile.in index b2acbd8f2..a6d995e18 100644 --- a/Examples/test-suite/javascript/Makefile.in +++ b/Examples/test-suite/javascript/Makefile.in @@ -19,6 +19,8 @@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ CPP_TEST_CASES += \ + inplaceadd \ + input \ javascript_lib_arrays \ SWIGEXE = $(top_builddir)/swig