Skip to content

Commit

Permalink
Don't put .m on the end of things we're testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cbm755 committed Mar 2, 2024
1 parent e9b364e commit 4a373e1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test_extra/run_tests.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% Copyright (c) 2022 Markus Mützel
%% Copyright (c) 2022-2023 Colin B. Macdonald
%% Copyright (c) 2022-2024 Colin B. Macdonald
%%
%% SPDX-License-Identifier: BSD-3-Clause
%%
Expand Down Expand Up @@ -37,12 +37,12 @@
save_enc = feature ('DefaultCharacterSet');
meh = feature ('DefaultCharacterSet', 'CP1252');
chdir ('test_encoding')
ok1 = doctest ('test_matlab_style_CP1252.m');
ok1 = doctest ('test_matlab_style_CP1252');
chdir ('..')

meh = feature ('DefaultCharacterSet', 'UTF-8');
chdir ('test_encoding_utf8')
ok2 = doctest ('test_matlab_style_utf8.m');
ok2 = doctest ('test_matlab_style_utf8');
chdir ('..')

meh = feature ('DefaultCharacterSet', save_enc);
Expand All @@ -62,7 +62,7 @@
%! warn_orig = warning ('off', 'octave:get_input:invalid_utf8');
%! unwind_protect
%! addpath (canonicalize_file_name ('test_encoding'));
%! assert (doctest ('test_CP1252.m', '-quiet'));
%! assert (doctest ('test_CP1252', '-quiet'));
%! unwind_protect_cleanup
%! path (path_orig)
%! warning (warn_orig)
Expand All @@ -76,8 +76,8 @@
%! path_orig = path ();
%! unwind_protect
%! addpath (canonicalize_file_name ('test_encoding'));
%! assert (doctest ('test_bytecount_CP1252.m', '-quiet'));
%! assert (doctest ('test_matlab_style_CP1252.m', '-quiet'));
%! assert (doctest ('test_bytecount_CP1252', '-quiet'));
%! assert (doctest ('test_matlab_style_CP1252', '-quiet'));
%! unwind_protect_cleanup
%! path (path_orig)
%! end
Expand All @@ -89,8 +89,8 @@
%! d = pwd ();
%! unwind_protect
%! cd ('test_encoding');
%! assert (doctest ('test_bytecount_CP1252.m', '-quiet'));
%! assert (doctest ('test_matlab_style_CP1252.m', '-quiet'));
%! assert (doctest ('test_bytecount_CP1252', '-quiet'));
%! assert (doctest ('test_matlab_style_CP1252', '-quiet'));
%! unwind_protect_cleanup
%! cd (d)
%! end
Expand All @@ -103,7 +103,7 @@
%! path_orig = path ();
%! unwind_protect
%! addpath (canonicalize_file_name ('test_encoding_utf8'));
%! assert (doctest ('test_matlab_style_utf8.m', '-quiet'));
%! assert (doctest ('test_matlab_style_utf8', '-quiet'));
%! unwind_protect_cleanup
%! path (path_orig)
%! end
Expand All @@ -115,7 +115,7 @@
%! d = pwd ();
%! unwind_protect
%! cd ('test_encoding_utf8');
%! assert (doctest ('test_matlab_style_utf8.m', '-quiet'));
%! assert (doctest ('test_matlab_style_utf8', '-quiet'));
%! unwind_protect_cleanup
%! cd (d)
%! end
Expand Down

0 comments on commit 4a373e1

Please sign in to comment.