From 4db2284bbc0fc8f89222d9ccd6d8be34e70f2c02 Mon Sep 17 00:00:00 2001 From: "Colin B. Macdonald" Date: Fri, 29 Aug 2025 00:11:35 -0700 Subject: [PATCH 1/2] Rename some functions to match m-files --- tests/chebfun/test_fracCalc.m | 2 +- tests/chebop/test_scalarODE_damping.m | 2 +- ...oeffs.m => test_chebTcoeffs2chebUcoeffs.m} | 0 tests/deltafun/test_imag.m | 2 +- tests/diskfun/test_coeffs2vals_vals2coeffs.m | 2 +- tests/linop/test_operarith.m | 32 +++++++++---------- .../spherefun/test_coeffs2vals_vals2coeffs.m | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) rename tests/chebtech/{test_chebTcoeffs2chebUCoeffs.m => test_chebTcoeffs2chebUcoeffs.m} (100%) diff --git a/tests/chebfun/test_fracCalc.m b/tests/chebfun/test_fracCalc.m index 02623abf4..a366eadb9 100644 --- a/tests/chebfun/test_fracCalc.m +++ b/tests/chebfun/test_fracCalc.m @@ -1,6 +1,6 @@ % Test file for fractional calculus. -function pass = test_fracInt(pref) +function pass = test_fracCalc(pref) if ( nargin == 0 ) pref = chebfunpref(); diff --git a/tests/chebop/test_scalarODE_damping.m b/tests/chebop/test_scalarODE_damping.m index 0dc24b5e2..1e5acae7e 100644 --- a/tests/chebop/test_scalarODE_damping.m +++ b/tests/chebop/test_scalarODE_damping.m @@ -1,4 +1,4 @@ -function [pass, u1, u2, info1, info2] = test_scalarODEdamping(pref) +function [pass, u1, u2, info1, info2] = test_scalarODE_damping(pref) % A nonlinear CHEBOP test. This test tests a scalar ODE, where no breakpoints % occur. It solves the problem using chebcolloc1, chebcolloc2 and ultraS % discretizations. The problem solved requires damping for the Newton iteration diff --git a/tests/chebtech/test_chebTcoeffs2chebUCoeffs.m b/tests/chebtech/test_chebTcoeffs2chebUcoeffs.m similarity index 100% rename from tests/chebtech/test_chebTcoeffs2chebUCoeffs.m rename to tests/chebtech/test_chebTcoeffs2chebUcoeffs.m diff --git a/tests/deltafun/test_imag.m b/tests/deltafun/test_imag.m index b4ba0e739..69c401fbd 100644 --- a/tests/deltafun/test_imag.m +++ b/tests/deltafun/test_imag.m @@ -1,6 +1,6 @@ % Test file for @deltafun/imag.m -function pass = test_real(pref) +function pass = test_imag(pref) if (nargin < 1) pref = chebfunpref(); diff --git a/tests/diskfun/test_coeffs2vals_vals2coeffs.m b/tests/diskfun/test_coeffs2vals_vals2coeffs.m index 2af817347..ff30892d3 100644 --- a/tests/diskfun/test_coeffs2vals_vals2coeffs.m +++ b/tests/diskfun/test_coeffs2vals_vals2coeffs.m @@ -1,4 +1,4 @@ -function pass = test_coeffs2vals( pref ) +function pass = test_coeffs2vals_vals2coeffs( pref ) % Grab some preferences if ( nargin == 0 ) diff --git a/tests/linop/test_operarith.m b/tests/linop/test_operarith.m index 95b8628fd..684645cab 100644 --- a/tests/linop/test_operarith.m +++ b/tests/linop/test_operarith.m @@ -1,17 +1,17 @@ -function pass = linop_operarith -% This test checks basic arithmetic operations of linops -% Toby Driscoll, 3 Feb 2014 - -d = [-1,4]; -[Z,I,D,C,M] = linop.primitiveOperators(d); -f = chebfun(@(x) exp(sin(x).^2+2),d); - -%% -F = M(f); -A = -(2*D^2 - F*C + 3*I); -Af = A*f; - -%% -pass = norm( Af - (f.*cumsum(f)-2*diff(f,2)-3*f) ) < 1e4*eps; - +function pass = test_operarith +% This test checks basic arithmetic operations of linops +% Toby Driscoll, 3 Feb 2014 + +d = [-1,4]; +[Z,I,D,C,M] = linop.primitiveOperators(d); +f = chebfun(@(x) exp(sin(x).^2+2),d); + +%% +F = M(f); +A = -(2*D^2 - F*C + 3*I); +Af = A*f; + +%% +pass = norm( Af - (f.*cumsum(f)-2*diff(f,2)-3*f) ) < 1e4*eps; + end diff --git a/tests/spherefun/test_coeffs2vals_vals2coeffs.m b/tests/spherefun/test_coeffs2vals_vals2coeffs.m index a3735bc59..3d6f85ada 100644 --- a/tests/spherefun/test_coeffs2vals_vals2coeffs.m +++ b/tests/spherefun/test_coeffs2vals_vals2coeffs.m @@ -1,4 +1,4 @@ -function pass = test_coeffs2vals( pref ) +function pass = test_coeffs2vals_vals2coeffs( pref ) % Grab some preferences if ( nargin == 0 ) From 256f9370630f4d9951277ec11061fd197957c198 Mon Sep 17 00:00:00 2001 From: "Colin B. Macdonald" Date: Fri, 29 Aug 2025 00:19:01 -0700 Subject: [PATCH 2/2] Fix cp, which was missing lots of files Fixes https://github.com/gnu-octave/chebfun/issues/2 --- octave_pkg/make_oct_pkg.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octave_pkg/make_oct_pkg.sh b/octave_pkg/make_oct_pkg.sh index 0abf06948..d837ca0a6 100755 --- a/octave_pkg/make_oct_pkg.sh +++ b/octave_pkg/make_oct_pkg.sh @@ -6,12 +6,13 @@ A=chebfun-5.7.0+ rm -rf $A +rm -f $A.tar.gz mkdir $A cp NEWS DESCRIPTION $A cp ../LICENSE.txt $A/COPYING pushd $A mkdir inst -cp -ra ../../ inst/ +cp -ra ../../* inst/ rm -rf inst/.git rm -rf inst/.github popd