Skip to content

Commit

Permalink
Wrap matlab test scripts with print information
Browse files Browse the repository at this point in the history
These script are intended to be run as tests, but there is no visible
information whether scripts were actually executed.

Wrapping them up in print statements gives us confidence that scripts
were run from start to finish.
  • Loading branch information
achaikou committed Feb 5, 2025
1 parent 18626f5 commit 6683da9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mex/test/segy.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
disp('segy.m test suite: start');
% test segyline

% preconditions
Expand Down Expand Up @@ -279,3 +280,5 @@
assert(abs(wr_line1(2,2,1) - 101.01001) < eps);
assert(abs(wr_line1(3,2,1) - 101.01002) < eps);
assert(abs(wr_line1(2,2,2) - 101.02001) < eps);

disp('segy.m test suite: over');
3 changes: 3 additions & 0 deletions mex/test/segyspec.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
disp('segyspec.m test suite: start');
% test segyspec

% preconditions
Expand Down Expand Up @@ -86,3 +87,5 @@
for il = spec.inline_indexes'
assert(il >= 1 && il <= 5);
end

disp('segyspec.m test suite: over');

0 comments on commit 6683da9

Please sign in to comment.