Skip to content

Commit 813f104

Browse files
committed
refinements to the test suite
1 parent a961236 commit 813f104

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

toolchain/s_test_suite_compatibility.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292

9393
end
9494

95-
9695
% find the last non-empty cell index
9796
lastNonEmptyIdx = find(failed_tests ~= 0, 1, 'last');
9897
% truncate the array, keeping empty cells within range
@@ -105,10 +104,10 @@
105104
% success
106105
fprintf('✅ All tests PASSED.\n');
107106
% success
108-
% exit(0);
107+
exit(0);
109108
else
110109
% fail the workflow
111110
fprintf('❌ Tests FAILED at indices: %s\n', sprintf('%d ', failed_tests));
112111
% failed
113-
% exit(1);
112+
exit(1);
114113
end

toolchain/s_test_suite_gaussian.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
% file s_test_suite_equilibrium.m
2-
% brief contains script to test for equilibrium conditions
1+
% file s_test_suite_gaussian.m
2+
% brief contains script to test for equilibrium conditions from a Gaussian
3+
% pressure impulse
34

45
% brief This script runs both the finite difference and spectral codes to
56
% test that initial equilibrium conditions are satisfied
@@ -60,7 +61,6 @@
6061
'tw',tw,...
6162
'pA',pA};
6263
[ttest,Rf_test] = f_imr_fd(varin{:},'Nt',50,'Mt',50);
63-
plot(ttest,Rf_test)
6464
errors_fd(count) = abs(1-Rf_test(end));
6565
fprintf('Test %d: L2 norm error = %.6e\n', count, errors_fd(count));
6666
[~,Rs_test] = f_imr_spectral(varin{:},'Nt',12,'Mt',12);

0 commit comments

Comments
 (0)