Skip to content

Commit 8340337

Browse files
committed
*printf char
1 parent ede09d1 commit 8340337

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

buildfile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function publishTask(context)
201201
movefile(readme, html_dir + "/index.html");
202202
readme = html_dir + "/index.html";
203203

204-
fprintf("\nweb('file:///%s') to view docs\n\n", readme);
204+
fprintf('\nweb("file:///%s") to view docs\n\n', readme);
205205
end
206206

207207

private/publish_gen_index_html.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
%% Git info
2727
repo = gitrepo(pkg.path);
28-
git_txt = sprintf("Git branch / commit: %s %s %s", repo.CurrentBranch.Name, repo.LastCommit.ID{1}(1:8), repo.LastCommit.CommitterDate);
28+
git_txt = sprintf('Git branch / commit: %s %s %s', repo.CurrentBranch.Name, repo.LastCommit.ID{1}(1:8), repo.LastCommit.CommitterDate);
2929

3030
%% generate docs
3131
readme = fullfile(outdir, "index.html");

scripts/MatlabReleaseUpgrade.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function MatlabReleaseUpgrade()
1414

1515
cmd = getUpgradePath();
1616

17-
fprintf("Matlab upgrade command:\n\n%s\n\n", cmd);
17+
fprintf('Matlab upgrade command:\n\n%s\n\n', cmd);
1818

1919
end
2020

scripts/installDotNet.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
cmd = sprintf('sh -c "%s --install-dir %s"', scr, installDir);
3434

35-
assert(stdlib.set_permissions(scr, 0, 0, 1), sprintf("chmod +x %s", scr))
35+
assert(stdlib.set_permissions(scr, 0, 0, 1), sprintf('chmod +x %s', scr))
3636
end
3737

3838
disp(cmd)

scripts/installMatlabPackageManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
pexe = websave(pexe, url);
2020

21-
fprintf("installed MPM %s\n", pexe);
21+
fprintf('installed MPM %s\n', pexe);
2222

2323
% make the program executable
2424
if isunix()
2525
root = fileparts(fileparts(mfilename('fullpath')));
2626
addpath(root)
27-
assert(stdlib.set_permissions(pexe, 0, 0, 1), sprintf("chmod +x %s", pexe))
27+
assert(stdlib.set_permissions(pexe, 0, 0, 1), sprintf('chmod +x %s', pexe))
2828
end

scripts/install_cmake.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ function install_cmake(prefix, cmake_version)
4444
mustBeNonempty(name_arch)
4545

4646
% Compose the URL for the download.
47-
archive_name = sprintf("cmake-%s-%s-%s", cmake_version, os, name_arch);
47+
archive_name = sprintf('cmake-%s-%s-%s', cmake_version, os, name_arch);
4848
archive_file = archive_name + ext;
4949
archive_path = fullfile(prefix, archive_file);
50-
url = sprintf("https://github.com/Kitware/CMake/releases/download/v%s/%s", cmake_version, archive_file);
50+
url = sprintf('https://github.com/Kitware/CMake/releases/download/v%s/%s', cmake_version, archive_file);
5151

5252
fprintf('%s => %s\n', url, archive_path);
5353
if ~isfolder(prefix)

test/TestIsSubdir.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
function test_is_subdir(tc, p_is_subdir)
1414
tc.verifyEqual(stdlib.is_subdir(p_is_subdir{1}, p_is_subdir{2}), p_is_subdir{3}, ...
15-
sprintf("subdir(%s, %s)", p_is_subdir{1}, p_is_subdir{2}))
15+
sprintf('subdir(%s, %s)', p_is_subdir{1}, p_is_subdir{2}))
1616
end
1717

1818
function test_is_prefix(tc, p_is_prefix)
1919
tc.verifyEqual(stdlib.is_prefix(p_is_prefix{1}, p_is_prefix{2}), p_is_prefix{3}, ...
20-
sprintf("prefix(%s, %s)", p_is_prefix{1}, p_is_prefix{2}))
20+
sprintf('prefix(%s, %s)', p_is_prefix{1}, p_is_prefix{2}))
2121
end
2222

2323
end

test/TestNormalize.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ function test_normalize(tc, p)
2626
c = stdlib.normalize(p{1});
2727

2828
tc.verifyEqual(c, p{2}, ...
29-
sprintf("normalize(%s)", p{1}))
29+
sprintf('normalize(%s)', p{1}))
3030
end
3131

3232
function test_drop_slash(tc, d)
3333
tc.verifyEqual(stdlib.drop_slash(d{1}), d{2}, ...
34-
sprintf("drop_slash(%s)", d{1}))
34+
sprintf('drop_slash(%s)', d{1}))
3535
end
3636

3737
end

test/TestParent.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
function test_parent(tc, p)
1313
pr = stdlib.parent(p{1});
14-
tc.verifyEqual(pr, p{2}, sprintf("parent(%s)", p{1}))
14+
tc.verifyEqual(pr, p{2}, sprintf('parent(%s)', p{1}))
1515
end
1616

1717
end

test_main.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function test_main(context, sel)
77
context = [];
88
end
99
if nargin < 2
10-
sel = (~HasTag("exe") & ~HasTag("java_exe")) | HasTag("native_exe");
10+
sel = (~HasTag('exe') & ~HasTag('java_exe')) | HasTag('native_exe');
1111
end
1212

1313
import matlab.unittest.TestRunner
@@ -36,7 +36,7 @@ function test_main(context, sel)
3636
case {'MATLAB:expectedScalartext', 'MATLAB:expectedScalar'}
3737
suite = testsuite(test_root);
3838

39-
assert(numel(rtags) > 0, "No test tags found for this Matlab release")
39+
assert(numel(rtags) > 0, 'No test tags found for this Matlab release')
4040
ts = HasTag(rtags(1));
4141
if numel(rtags) > 1
4242
for t = rtags(2:end)
@@ -56,18 +56,18 @@ function test_main(context, sel)
5656
runner = TestRunner.withTextOutput;
5757
r = runner.run(suite);
5858

59-
assert(~isempty(r), "No tests were run")
59+
assert(~isempty(r), 'No tests were run')
6060

6161
Lf = sum([r.Failed]);
6262
Lok = sum([r.Passed]);
6363
Lk = sum([r.Incomplete]);
6464
Lt = numel(r);
65-
assert(Lf == 0, sprintf("%d / %d tests failed", Lf, Lt))
65+
assert(Lf == 0, sprintf('%d / %d tests failed', Lf, Lt))
6666

6767
if Lk
68-
fprintf("%d / %d tests skipped\n", Lk, Lt);
68+
fprintf('%d / %d tests skipped\n', Lk, Lt);
6969
end
7070

71-
fprintf("%d / %d tests succeeded\n", Lok, Lt);
71+
fprintf('%d / %d tests succeeded\n', Lok, Lt);
7272

7373
end

0 commit comments

Comments
 (0)