Skip to content

Commit 0654721

Browse files
committedJan 13, 2022
Fix minor Octave/INTLAB issues
1 parent cd7a972 commit 0654721

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎install_vsdp.m

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function install_vsdp (settings_file)
1515
addpath (vsdp_path);
1616
addpath (fullfile (vsdp_path, 'test'));
1717
if (exist ('OCTAVE_VERSION', 'builtin'))
18+
warning ('off', 'octave:get_input:invalid_utf8'); % INTLAB has old encoding
1819
warning ('off', 'Octave:shadowed-function', 'local');
1920
addpath (fullfile (vsdp_path, 'octave'));
2021
end

‎octave/verifyEqual.m

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ function verifyEqual (~, a, b, varargin)
1212

1313
% Copyright 2016-2020 Kai T. Ohlhus (kai.ohlhus@tuhh.de)
1414

15+
% Octave's assert has problems with "intval" class.
16+
if (isa (a, "intval") || isa (b, "intval"))
17+
if (~ isequal (a, b))
18+
error ("verifyEqual: intval test for a == b failed.");
19+
endif
20+
return;
21+
endif
22+
1523
if (nargin == 3)
1624
assert(a, b);
1725
else

0 commit comments

Comments
 (0)
Please sign in to comment.